You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
964 B
34 lines
964 B
15 years ago
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
15 years ago
|
#include <tqobject.h>
|
||
15 years ago
|
#include <kapplication.h>
|
||
|
#include <kipc.h>
|
||
|
#include "kipctest.h"
|
||
|
|
||
|
MyObject::MyObject()
|
||
15 years ago
|
: TQObject(0L, "testobj")
|
||
15 years ago
|
{
|
||
15 years ago
|
connect(kapp, TQT_SIGNAL(kdisplayPaletteChanged()), TQT_SLOT(slotPaletteChanged()));
|
||
|
connect(kapp, TQT_SIGNAL(kdisplayFontChanged()), TQT_SLOT(slotFontChanged()));
|
||
|
connect(kapp, TQT_SIGNAL(kdisplayStyleChanged()), TQT_SLOT(slotStyleChanged()));
|
||
|
connect(kapp, TQT_SIGNAL(backgroundChanged(int)), TQT_SLOT(slotBackgroundChanged(int)));
|
||
|
connect(kapp, TQT_SIGNAL(appearanceChanged()), TQT_SLOT(slotAppearanceChanged()));
|
||
|
connect(kapp, TQT_SIGNAL(kipcMessage(int,int)), TQT_SLOT(slotMessage(int,int)));
|
||
15 years ago
|
}
|
||
|
|
||
|
int main(int argc, char **argv)
|
||
|
{
|
||
|
KApplication app(argc, argv, "kipc");
|
||
|
|
||
|
if (argc == 3)
|
||
|
{
|
||
|
KIPC::sendMessageAll((KIPC::Message) atoi(argv[1]), atoi(argv[2]));
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
MyObject obj;
|
||
|
return app.exec();
|
||
|
}
|
||
|
|
||
|
#include "kipctest.moc"
|