[SCM] ktp-auth-handler packaging branch, master, updated. debian/15.12.1-2-282-g080758e

Maximiliano Curia maxy at moszumanska.debian.org
Fri May 27 23:58:12 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-auth-handler.git;a=commitdiff;h=159c573

The following commit has been merged in the master branch:
commit 159c5736abcebde193749ba06100f9c156865127
Author: Daniele E. Domenichelli <daniele.domenichelli at gmail.com>
Date:   Tue Sep 13 17:02:23 2011 +0100

    Use KApplication instead of QApplication and add --debug option
---
 main.cpp | 22 +++++++++++++++++++---
 1 file changed, 19 insertions(+), 3 deletions(-)

diff --git a/main.cpp b/main.cpp
index a5442d0..b65bb60 100644
--- a/main.cpp
+++ b/main.cpp
@@ -18,7 +18,9 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#include <QApplication>
+#include <KAboutData>
+#include <KCmdLineArgs>
+#include <KApplication>
 
 #include <TelepathyQt4/AccountFactory>
 #include <TelepathyQt4/AccountManager>
@@ -34,11 +36,25 @@
 
 int main(int argc, char *argv[])
 {
-    QApplication app(argc, argv);
+    KAboutData aboutData("telepathy-kde-auth-handler",
+                         0,
+                         ki18n("Telepathy File Auth Handler"),
+                         "0.1");
+    aboutData.addAuthor(ki18n("David Edmundson"), ki18n("Developer"), "kde at davidedmundson.co.uk");
+    aboutData.setProductName("telepathy/auth-handler");
+
+
+    // Add --debug commandline options
+    KCmdLineOptions options;
+    options.add("debug", ki18n("Show Telepathy debugging information"));
+    KCmdLineArgs::addCmdLineOptions(options);
+
+    KCmdLineArgs::init(argc, argv, &aboutData);
+    KApplication app;
     app.setQuitOnLastWindowClosed(false);
 
     Tp::registerTypes();
-//    Tp::enableDebug(true);
+    Tp::enableDebug(KCmdLineArgs::parsedArgs()->isSet("debug"));
     Tp::enableWarnings(true);
 
     Tp::ChannelClassSpecList channelSpecList;

-- 
ktp-auth-handler packaging



More information about the pkg-kde-commits mailing list