GtkWidget *getWidget() { return myWidget; }
- bool startApplication(const std::string& application);
+private:
+ bool initWidget();
private:
osso_context_t *myContext;
// Hildon home applet interface functions
-void *hildon_home_applet_lib_initialize (void *state_data, int *state_size, GtkWidget **widget) {
+void *hildon_home_applet_lib_initialize(void *state_data, int *state_size, GtkWidget **widget) {
SimpleLauncherApplet *applet = new SimpleLauncherApplet();
if (applet != 0) {
return false;
}
- // myWidget = mis_widget_new_with_engines_and_history();
- if (myWidget == 0) {
+ if (!initWidget()) {
return false;
}
}
}
+bool SimpleLauncherApplet::initWidget() {
+ return false;
+}
+
int SimpleLauncherApplet::saveState(void **state_data, int *state_size) {
if (state_data != 0) {
*state_data = 0;
// corresponding dialog appears.
return 0;
}
-
-bool SimpleLauncherApplet::startApplication(const std::string& application) {
- return osso_application_top(myContext, application.c_str(), 0) == OSSO_OK;
-}