[SCM] ktp-common-internals packaging branch, master, updated. debian/15.12.1-2-1839-gf0635e9

Maximiliano Curia maxy at moszumanska.debian.org
Mon May 9 09:04:21 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-common-internals.git;a=commitdiff;h=35cdbd9

The following commit has been merged in the master branch:
commit 35cdbd9968efb5d6948473ccc4d6869ad66f4d28
Author: George Goldberg <grundleborg at googlemail.com>
Date:   Sat Jun 20 16:29:49 2009 +0000

    Add a skeleton AccountMonitor class which will monitor the Accounts on the Telpathy AccountManager dbus.
    
    svn path=/trunk/playground/network/telepathy-integration-daemon/; revision=984365
---
 kpeople/nepomuk-feeder/CMakeLists.txt              |  1 +
 kpeople/nepomuk-feeder/main.cpp                    |  5 +++++
 .../{main.cpp => telepathyaccountmonitor.cpp}      | 12 ++++++-----
 .../{main.cpp => telepathyaccountmonitor.h}        | 24 ++++++++++++++++------
 4 files changed, 31 insertions(+), 11 deletions(-)

diff --git a/kpeople/nepomuk-feeder/CMakeLists.txt b/kpeople/nepomuk-feeder/CMakeLists.txt
index 4955da7..2fd2871 100644
--- a/kpeople/nepomuk-feeder/CMakeLists.txt
+++ b/kpeople/nepomuk-feeder/CMakeLists.txt
@@ -33,6 +33,7 @@ set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}" )
 ########### next target ###############
 
 set(telepathy_integration_daemon_SRCS
+    telepathyaccountmonitor.cpp
     main.cpp
 )
 
diff --git a/kpeople/nepomuk-feeder/main.cpp b/kpeople/nepomuk-feeder/main.cpp
index 92c9cc9..192c8bd 100644
--- a/kpeople/nepomuk-feeder/main.cpp
+++ b/kpeople/nepomuk-feeder/main.cpp
@@ -18,12 +18,17 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
+#include "telepathyaccountmonitor.h"
+
 #include <QtCore/QCoreApplication>
 
 int main(int argc, char *argv[])
 {
     QCoreApplication app(argc, argv);
 
+    // Create an instance of the Telepathy Account Monitor.
+    new TelepathyAccountMonitor(&app);
+
     // Start event loop.
     app.exec();
 }
diff --git a/kpeople/nepomuk-feeder/main.cpp b/kpeople/nepomuk-feeder/telepathyaccountmonitor.cpp
similarity index 81%
copy from kpeople/nepomuk-feeder/main.cpp
copy to kpeople/nepomuk-feeder/telepathyaccountmonitor.cpp
index 92c9cc9..727578d 100644
--- a/kpeople/nepomuk-feeder/main.cpp
+++ b/kpeople/nepomuk-feeder/telepathyaccountmonitor.cpp
@@ -18,13 +18,15 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#include <QtCore/QCoreApplication>
+#include "telepathyaccountmonitor.h"
 
-int main(int argc, char *argv[])
+TelepathyAccountMonitor::TelepathyAccountMonitor(QObject *parent)
+ : QObject(parent)
 {
-    QCoreApplication app(argc, argv);
+    // TODO: Implement me!
+}
 
-    // Start event loop.
-    app.exec();
+TelepathyAccountMonitor::~TelepathyAccountMonitor()
+{
 }
 
diff --git a/kpeople/nepomuk-feeder/main.cpp b/kpeople/nepomuk-feeder/telepathyaccountmonitor.h
similarity index 70%
copy from kpeople/nepomuk-feeder/main.cpp
copy to kpeople/nepomuk-feeder/telepathyaccountmonitor.h
index 92c9cc9..77cce94 100644
--- a/kpeople/nepomuk-feeder/main.cpp
+++ b/kpeople/nepomuk-feeder/telepathyaccountmonitor.h
@@ -18,13 +18,25 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#include <QtCore/QCoreApplication>
+#ifndef TELEPATHY_INTEGRATION_DAEMON_TELEPATHYACCOUNTMONITOR_H
+#define TELEPATHY_INTEGRATION_DAEMON_TELEPATHYACCOUNTMONITOR_H
 
-int main(int argc, char *argv[])
+#include <QtCore/QObject>
+
+class TelepathyAccountMonitor : public QObject
 {
-    QCoreApplication app(argc, argv);
+    Q_OBJECT
+
+public:
+    explicit TelepathyAccountMonitor(QObject *parent = 0);
+    ~TelepathyAccountMonitor();
+
+private Q_SLOTS:
+
+private:
+
+};
+
 
-    // Start event loop.
-    app.exec();
-}
+#endif // Header guard
 

-- 
ktp-common-internals packaging



More information about the pkg-kde-commits mailing list