summaryrefslogtreecommitdiffstats
path: root/kontact_plugin/basketdcopiface_stub.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-01-10 00:18:25 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-01-10 00:18:25 +0000
commitf21e5792b5084f5d008bf46f6316030c6dfb31e5 (patch)
treed51583b36aa1672bac78d98a682cdc330df27e4d /kontact_plugin/basketdcopiface_stub.cpp
downloadbasket-f21e5792b5084f5d008bf46f6316030c6dfb31e5.tar.gz
basket-f21e5792b5084f5d008bf46f6316030c6dfb31e5.zip
Add author-abandoned basket application
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/basket@1072339 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kontact_plugin/basketdcopiface_stub.cpp')
-rw-r--r--kontact_plugin/basketdcopiface_stub.cpp56
1 files changed, 56 insertions, 0 deletions
diff --git a/kontact_plugin/basketdcopiface_stub.cpp b/kontact_plugin/basketdcopiface_stub.cpp
new file mode 100644
index 0000000..eff3122
--- /dev/null
+++ b/kontact_plugin/basketdcopiface_stub.cpp
@@ -0,0 +1,56 @@
+/****************************************************************************
+**
+** DCOP Stub Implementation created by dcopidl2cpp from basketdcopiface.kidl
+**
+** WARNING! All changes made in this file will be lost!
+**
+*****************************************************************************/
+
+#include "basketdcopiface_stub.h"
+#include <dcopclient.h>
+
+#include <kdatastream.h>
+
+
+BasketDcopInterface_stub::BasketDcopInterface_stub( const QCString& app, const QCString& obj )
+ : DCOPStub( app, obj )
+{
+}
+
+BasketDcopInterface_stub::BasketDcopInterface_stub( DCOPClient* client, const QCString& app, const QCString& obj )
+ : DCOPStub( client, app, obj )
+{
+}
+
+BasketDcopInterface_stub::BasketDcopInterface_stub( const DCOPRef& ref )
+ : DCOPStub( ref )
+{
+}
+
+void BasketDcopInterface_stub::newBasket()
+{
+ if ( !dcopClient() ) {
+ setStatus( CallFailed );
+ return;
+ }
+ QByteArray data;
+ dcopClient()->send( app(), obj(), "newBasket()", data );
+ setStatus( CallSucceeded );
+}
+
+void BasketDcopInterface_stub::handleCommandLine()
+{
+ if ( !dcopClient() ) {
+ setStatus( CallFailed );
+ return;
+ }
+ QByteArray data, replyData;
+ QCString replyType;
+ if ( dcopClient()->call( app(), obj(), "handleCommandLine()", data, replyType, replyData ) ) {
+ setStatus( CallSucceeded );
+ } else {
+ callFailed();
+ }
+}
+
+