diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-06 15:56:40 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-06 15:56:40 -0600 |
commit | e16866e072f94410321d70daedbcb855ea878cac (patch) | |
tree | ee3f52eabde7da1a0e6ca845fb9c2813cf1558cf /tdecore/tests/kipctest.cpp | |
parent | a58c20c1a7593631a1b50213c805507ebc16adaf (diff) | |
download | tdelibs-e16866e072f94410321d70daedbcb855ea878cac.tar.gz tdelibs-e16866e072f94410321d70daedbcb855ea878cac.zip |
Actually move the kde files that were renamed in the last commit
Diffstat (limited to 'tdecore/tests/kipctest.cpp')
-rw-r--r-- | tdecore/tests/kipctest.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tdecore/tests/kipctest.cpp b/tdecore/tests/kipctest.cpp new file mode 100644 index 000000000..136aa6d70 --- /dev/null +++ b/tdecore/tests/kipctest.cpp @@ -0,0 +1,33 @@ +#include <stdio.h> +#include <stdlib.h> +#include <tqobject.h> +#include <kapplication.h> +#include <kipc.h> +#include "kipctest.h" + +MyObject::MyObject() + : TQObject(0L, "testobj") +{ + 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))); +} + +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" |