2
* Copyright (C) %{YEAR} %{AUTHOR} <%{EMAIL}>
6
#include <dcopclient.h>
7
#include <qdatastream.h>
10
int main(int argc, char **argv)
12
KApplication app(argc, argv, "%{APPNAMELC}_client", false);
14
// get our DCOP client and attach so that we may use it
15
DCOPClient *client = app.dcopClient();
18
// do a 'send' for now
20
QDataStream ds(data, IO_WriteOnly);
22
ds << QString(argv[1]);
24
ds << QString("http://www.kde.org");
25
client->send("%{APPNAMELC}", "%{APPNAME}Iface", "openURL(QString)", data);