• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

krdc

  • sources
  • kde-4.12
  • kdenetwork
  • krdc
  • krdc_approver
krdc_approver/main.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (C) 2009 Collabora Ltd <info@collabora.co.uk>
4 ** Copyright (C) 2009 Abner Silva <abner.silva@kdemail.net>
5 **
6 ** This file is part of KDE.
7 **
8 ** This program is free software; you can redistribute it and/or modify
9 ** it under the terms of the GNU General Public License as published by
10 ** the Free Software Foundation; either version 2 of the License, or
11 ** (at your option) any later version.
12 **
13 ** This program is distributed in the hope that it will be useful,
14 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ** GNU General Public License for more details.
17 **
18 ** You should have received a copy of the GNU General Public License
19 ** along with this program; see the file COPYING. If not, write to
20 ** the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 ** Boston, MA 02110-1301, USA.
22 **
23 ****************************************************************************/
24 
25 #include "approvermanager.h"
26 
27 #include <KAboutData>
28 #include <KCmdLineArgs>
29 #include <KLocalizedString>
30 #include <KUniqueApplication>
31 
32 #include <TelepathyQt/Types>
33 #include <TelepathyQt/Debug>
34 #include <TelepathyQt/ClientRegistrar>
35 
36 int main(int argc, char **argv)
37 {
38  KAboutData aboutData("krdc_rfb_approver", "KRDC", ki18n("KRDC"), "0.1",
39  ki18n("Approver for KRDC"), KAboutData::License_GPL,
40  ki18n("(C) 2009, Abner Silva"));
41  aboutData.setProgramIconName("krdc");
42  aboutData.addAuthor(ki18nc("@info:credit", "Abner Silva"), KLocalizedString(),
43  "abner.silva@kdemail.net");
44 
45  KCmdLineArgs::init(argc, argv, &aboutData);
46 
47  if (!KUniqueApplication::start())
48  return 0;
49 
50  KUniqueApplication app;
51  app.disableSessionManagement();
52 
53  Tp::registerTypes();
54  Tp::enableDebug(true);
55  Tp::enableWarnings(true);
56 
57  Tp::ClientRegistrarPtr registrar = Tp::ClientRegistrar::create();
58  Tp::SharedPtr<ApproverManager> approverManager;
59  approverManager = Tp::SharedPtr<ApproverManager>(new ApproverManager(0));
60  registrar->registerClient(Tp::AbstractClientPtr::dynamicCast(approverManager), "krdc_rfb_approver");
61 
62  return app.exec();
63 }
approvermanager.h
main
int main(int argc, char **argv)
Definition: krdc_approver/main.cpp:36
ApproverManager
Definition: approvermanager.h:32
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:54:04 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

krdc

Skip menu "krdc"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal