1 #include <QtGui/QApplication>
2 #include "mainwindow.h"
3 #include "contactinterface.h"
13 static void registerTypes()
15 static bool registered = false;
18 qRegisterMetaType<Item>();
19 qRegisterMetaType<ItemList>();
20 qRegisterMetaType<ItemListPtr>();
25 int main(int argc, char *argv[])
28 // gtk_init( &argc, &argv );
30 /* Initialize the osso context */
31 osso_context_t *osso_context = osso_initialize( "GroupSMS", "1.0", TRUE, NULL );
34 //qDebug() << "Couldn't initialize osso context";
38 /* Initialize abook, which also initializes all the
39 * libraries it needs (GTK+, Galago, Gnome-VFS) */
40 osso_abook_init( &argc, &argv, osso_context);
43 QDir dir( QDir::homePath() );
44 dir.mkdir( HOME_DIR );
46 QApplication a(argc, argv);
51 MainWindow::getInstance()->show();
53 MainWindow::getInstance()->show();