Source code |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
int main(int argc, char **argv) { KApplication app(argc, argv, "app"); DCOPClient *client = kapp->dcopClient(); if(client->attach() == false) { qDebug("no connection"); } else { qDebug("CONNECTED"); } bool ok = client->send("kicker", "app", "restart()", QByteArray()); if(ok) { qDebug("OKAY"); } KMainWindow *mainWin = new simpledcop(); app.setMainWidget( mainWin ); mainWin->show(); return app.exec(); } |
Source code |
|
1 |
client ->registerAs("myapp"); |
Quoted
Originally posted by Christian
yeh it works with kdcop... this evening i will upload the whole project. perhaps my fault is somewhere else...
Forum Software: Burning Board®, developed by WoltLab® GmbH
Linux Computer - Linux Forum -
Linux Computer und Notebooks - Lastminute - Wasserbetten & Whirlpools