#ifndef YELLOWNOTES_H #define YELLOWNOTES_H #include #include class YellowNote; class YellowNotes { private: void *_tray_menu; void *_app; std::list _notes; public: void loadNotes(); void clearNotes(); public: std::string imageFile(const char *name); std::string appDir(); std::string notesDir(); public: void popupTrayMenu(); void newNote(); void quit(); public: YellowNotes(void *app); ~YellowNotes(); }; #define YELLOWNOTES(obj) reinterpret_cast(obj) #define SIGNAL(type, func, member) \ static void func(GObject *obj, gpointer user_data) { type *o = reinterpret_cast(user_data); o->member(); } #define SIGNAL2(type, func, member, argtype) \ static void func(GObject *obj, void *arg, gpointer user_data) { type *o = reinterpret_cast(user_data); o->member(reinterpret_cast(arg)); } #define BSIGNAL2(type, func, member, argtype) \ static gboolean func(GObject *obj, void *arg, gpointer user_data) { type *o = reinterpret_cast(user_data); return o->member(reinterpret_cast(arg)); } #endif // YELLOWNOTES_H