--- /dev/null
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+#ifndef _UI_PRIVATE_H_
+#define _UI_PRIVATE_H_
+
+#include "../../../../include/efl/mobile/ui_mobile_viewmanager.h"
+
+#endif /* _UI_PRIVATE_H_ */
--- /dev/null
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+#ifndef _UI_PRIVATE_VIEW_H_
+#define _UI_PRIVATE_VIEW_H_
+
+namespace efl_viewmanager
+{
+
+class ui_view_event_attr
+{
+public:
+ ui_view_lifecycle_callback_s lifecycle_callback;
+ ui_view_event_callback_s event_callback;
+ void *lifecycle_data;
+ void *event_data;
+
+ ui_view_event_attr() : lifecycle_data(NULL), event_data(NULL)
+ {
+ this->lifecycle_callback = {0, };
+ this->event_callback = {0, };
+ }
+
+ ~ui_view_event_attr()
+ {
+ }
+};
+
+}
+
+#endif /* _UI_PRIVATE_VIEW_H_ */
-#ifndef _UI_TIZEN_APP_CAPI_H_
-#define _UI_TIZEN_APP_CAPI_H_
+#ifndef _UI_APPLICATION_CAPI_H_
+#define _UI_APPLICATION_CAPI_H_
#ifdef __cplusplus
extern "C" {
}
#endif
-#endif /* _UI_TIZEN_APP_CAPI_H_ */
+#endif /* _UI_APPLICATION_CAPI_H_ */
#define Elm_Ctxpopup Evas_Object
#endif
-//FIXME: totally temporary.
-#define ui_viewmgr void
-#define ui_view void
-#define ui_menu void
-#define ui_popup void
+typedef struct ui_viewmgr_s ui_viewmgr;
+typedef struct ui_view_s ui_view;
+typedef struct ui_menu_s ui_menu;
+typedef struct ui_popup_s ui_popup;
//FIXME: better way?
#include "../../../interface/ui_iface_types.h"
+++ /dev/null
-/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-#ifndef _UI_CAPI_PRIVATE_H_
-#define _UI_CAPI_PRIVATE_H_
-
-namespace efl_viewmanager
-{
-
-class ui_view_event_attr
-{
-public:
- ui_view_lifecycle_callback_s lifecycle_callback;
- ui_view_event_callback_s event_callback;
- void *lifecycle_data;
- void *event_data;
-
- ui_view_event_attr() : lifecycle_data(NULL), event_data(NULL)
- {
- this->lifecycle_callback = {0, };
- this->event_callback = {0, };
- }
-
- ~ui_view_event_attr()
- {
- }
-};
-
-}
-
-#endif /* _UI_CAPI_PRIVATE_H_ */
extern "C" {
#endif
+
/**
* @brief ui_view's lifecycle callback function signature.
*/
ui_view_event_menu_cb menu;
} ui_view_event_callback_s;
+
/**
* @brief A constructor for an ui_view.
*
-#include "../../../../include/efl/mobile/ui_mobile_viewmanager.h"
-#include "../../../../include/efl/mobile/c/ui_mobile_viewmanager.h"
+#include "../../../../include/efl/mobile/c/_ui_private.h"
+#include "../../../../include/efl/mobile/c/ui_application.h"
using namespace efl_viewmanager;
-#include "../../../../include/efl/mobile/ui_mobile_viewmanager.h"
+#include "../../../../include/efl/mobile/c/_ui_private.h"
#include "../../../../include/efl/mobile/c/ui_menu.h"
using namespace efl_viewmanager;
+struct ui_menu_s
+{
+ ui_menu *p;
+};
+
bool ui_menu_content_set(ui_menu *menu, Elm_Ctxpopup *ctxpopup)
{
if (!menu)
-#include "../../../../include/efl/mobile/ui_mobile_viewmanager.h"
+#include "../../../../include/efl/mobile/c/_ui_private.h"
#include "../../../../include/efl/mobile/c/ui_popup.h"
using namespace efl_viewmanager;
+struct ui_popup_s
+{
+ ui_popup *p;
+};
+
ui_popup *ui_popup_create(ui_view *view)
{
return new ui_popup(view);
-#include "../../../../include/efl/mobile/ui_mobile_viewmanager.h"
+#include "../../../../include/efl/mobile/c/_ui_private.h"
#include "../../../../include/efl/mobile/c/ui_view.h"
#include "../../../../include/efl/mobile/c/ui_standard_view.h"
-#include "../../../../include/efl/mobile/c/ui_private.h"
+#include "../../../../include/efl/mobile/c/_ui_private_view.h"
using namespace efl_viewmanager;
}
};
+struct ui_standard_view_s
+{
+ ui_standard_view_capi *p;
+};
+
ui_view* ui_standard_view_create(const char *name)
{
return new ui_standard_view_capi(name);
-#include "../../../../include/efl/mobile/ui_mobile_viewmanager.h"
+#include "../../../../include/efl/mobile/c/_ui_private.h"
#include "../../../../include/efl/mobile/c/ui_view.h"
-#include "../../../../include/efl/mobile/c/ui_private.h"
+#include "../../../../include/efl/mobile/c/_ui_private_view.h"
using namespace efl_viewmanager;
}
};
+struct ui_view_s
+{
+ ui_view_capi *p;
+};
+
bool ui_view_lifecycle_callbacks_set(ui_view *view, ui_view_lifecycle_callback_s *lifecycle_callback, void *data)
{
if (!view)
-#include "../../../../include/efl/mobile/ui_mobile_viewmanager.h"
+#include "../../../../include/efl/mobile/c/_ui_private.h"
#include "../../../../include/efl/mobile/c/ui_viewmgr.h"
using namespace efl_viewmanager;
+struct ui_viewmgr_s
+{
+ ui_viewmgr *p;
+};
+
ui_view *ui_viewmgr_view_push(ui_viewmgr *viewmgr, ui_view *view)
{
if (!viewmgr || !view)