main.cpp 1.93 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <unistd.h>
#include <QApplication>
#include <QtCore/QString>
#include <QtGui/QMenu>
//#include <QtGui/QMenuBar>
#include <QtGui/QAction>

#include <kcmdlineargs.h>
#include <kaboutdata.h>
#include <klocale.h>
#include <KNotification>

#include "AccountWizard.h"
14
15
#include "lib/instance_interface_singleton.h"
#include "lib/sflphone_const.h"
16
17
#include "SFLPhoneapplication.h"
#include "conf/ConfigurationDialog.h"
18
#include "conf/ConfigurationSkeleton.h"
19
#include "CallView.h"
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43

#include <QTableView>
#include <QListView>
#include "AccountListModel.h"


static const char description[] = "A KDE 4 Client for SFLphone";

static const char version[] = "0.9.6";

int main(int argc, char **argv)
{
   
   try
   {
      KLocale::setMainCatalog("sflphone-client-kde");
      
      KAboutData about(
         "sflphone-client-kde", 
         "sflphone-client-kde", 
         ki18n("SFLphone KDE Client"), 
         version, 
         ki18n(description),
         KAboutData::License_GPL_V3, 
44
         ki18n("(C) 2009-2010 Savoir-faire Linux"), 
45
46
47
48
         KLocalizedString(), 
         "http://www.sflphone.org.", 
         "sflphone@lists.savoirfairelinux.net");
      about.addAuthor( ki18n("Jérémy Quentin"), KLocalizedString(), "jeremy.quentin@savoirfairelinux.com" );
49
      about.addAuthor( ki18n("Emmanuel Lepage Vallee"), KLocalizedString(), "emmanuel.lepage@savoirfairelinux.com" );
50
51
52
53
54
      about.setTranslator( ki18nc("NAME OF TRANSLATORS","Your names"), ki18nc("EMAIL OF TRANSLATORS","Your emails") );
      KCmdLineArgs::init(argc, argv, &about);
      KCmdLineOptions options;
      KCmdLineArgs::addCmdLineOptions(options);
      
55
56
      //configuration dbus
      CallView::init();
57

58
      SFLPhoneApplication app;
59
60

      
61
62
63
64
65
      int retVal = app.exec();
      
      ConfigurationSkeleton conf;
      conf.writeConfig();
      return retVal;
66
67
68
69
70
71
72
73
74
75
   }
   catch(const char * msg)
   {
      qDebug() << msg;
   }
   catch(QString msg)
   {
      qDebug() << msg;
   }
}