[Pkg-owncloud-commits] [owncloud-client] 08/70: Add a header file for owncloudcmd.cpp to avoid (auto)moc problems.

Sandro Knauß hefee-guest at moszumanska.debian.org
Sat May 17 20:01:24 UTC 2014


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit a8c1ffc2f4b231e93b4464a3b85dfe0f707e7e44
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Wed Apr 30 12:12:16 2014 +0200

    Add a header file for owncloudcmd.cpp to avoid (auto)moc problems.
---
 src/owncloudcmd/owncloudcmd.cpp | 13 +------------
 src/owncloudcmd/owncloudcmd.h   | 31 +++++++++++++++++++++++++++++++
 2 files changed, 32 insertions(+), 12 deletions(-)

diff --git a/src/owncloudcmd/owncloudcmd.cpp b/src/owncloudcmd/owncloudcmd.cpp
index 12abff6..b185816 100644
--- a/src/owncloudcmd/owncloudcmd.cpp
+++ b/src/owncloudcmd/owncloudcmd.cpp
@@ -29,20 +29,11 @@
 #include "mirall/clientproxy.h"
 #include "mirall/account.h"
 #include "creds/httpcredentials.h"
-
+#include "owncloudcmd.h"
 #include "simplesslerrorhandler.h"
 
 using namespace Mirall;
 
-class OwncloudCmd : public QObject {
-    Q_OBJECT
-public:
-    OwncloudCmd() : QObject() { }
-public slots:
-    void transmissionProgressSlot() {
-    }
-};
-
 struct CmdOptions {
     QString source_dir;
     QString target_url;
@@ -245,5 +236,3 @@ int main(int argc, char **argv) {
     return 0;
 }
 
-#include "owncloudcmd.moc"
-
diff --git a/src/owncloudcmd/owncloudcmd.h b/src/owncloudcmd/owncloudcmd.h
new file mode 100644
index 0000000..ae55305
--- /dev/null
+++ b/src/owncloudcmd/owncloudcmd.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) by Olivier Goffart <ogoffart at owncloud.com>
+ * Copyright (C) by Klaas Freitag <freitag at owncloud.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * for more details.
+ */
+
+#ifndef OWNCLOUDCMD_H
+#define OWNCLOUDCMD_H
+
+#include <QObject>
+
+
+class OwncloudCmd : public QObject {
+    Q_OBJECT
+public:
+    OwncloudCmd() : QObject() { }
+public slots:
+    void transmissionProgressSlot() {
+    }
+};
+
+#endif

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list