kandy_client.cpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #include <kapplication.h>
00026 #include <dcopclient.h>
00027 #include <qdatastream.h>
00028 #include <qstring.h>
00029
00030 int main(int argc, char **argv)
00031 {
00032 KApplication app(argc, argv, "kandy_client", false);
00033
00034
00035 DCOPClient *client = app.dcopClient();
00036 client->attach();
00037
00038
00039 QByteArray data;
00040 QDataStream ds(data, IO_WriteOnly);
00041 if (argc > 1)
00042 ds << QString(argv[1]);
00043 else
00044 ds << QString("http://www.kde.org");
00045 client->send("kandy", "KandyIface", "openURL(QString)", data);
00046
00047 return app.exec();
00048 }
This file is part of the documentation for kandy Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Apr 26 23:23:27 2004 by
doxygen 1.3.6-20040222 written by
Dimitri van Heesch, © 1997-2003