source: branches/start/Taper/src/taper_client.cpp@ 9223

Last change on this file since 9223 was 4307, checked in by merck, 21 years ago
new project
File size: 1.1 KB
Line 
1/***************************************************************************
2 * Copyright (C) 2004 by Martin Merck *
3 * merck@astro.uni-wuerzburg.de *
4 * *
5 * This software is part of the MAGIC software. *
6 ***************************************************************************/
7
8#include <kapplication.h>
9#include <dcopclient.h>
10#include <qdatastream.h>
11#include <qstring.h>
12
13int main(int argc, char **argv)
14{
15 KApplication app(argc, argv, "taper_client", false);
16
17 // get our DCOP client and attach so that we may use it
18 DCOPClient *client = app.dcopClient();
19 client->attach();
20
21 // do a 'send' for now
22 QByteArray data;
23 QDataStream ds(data, IO_WriteOnly);
24 if (argc > 1)
25 ds << QString(argv[1]);
26 else
27 ds << QString("http://www.kde.org");
28 client->send("taper", "TaperIface", "openURL(QString)", data);
29
30 return app.exec();
31}
Note: See TracBrowser for help on using the repository browser.