diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-22 19:13:25 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-22 19:13:25 +0000 |
commit | 7d8a8bdafccd66e70f313ee233cff920eac9d830 (patch) | |
tree | c0877b2799255f52ea6bfdfb60e5eb2f60926b6b /src/magiclabel.h | |
download | ksplash-engine-moodin-7d8a8bdafccd66e70f313ee233cff920eac9d830.tar.gz ksplash-engine-moodin-7d8a8bdafccd66e70f313ee233cff920eac9d830.zip |
Added KDE3 moodin engine
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ksplash-engine-moodin@1094437 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/magiclabel.h')
-rw-r--r-- | src/magiclabel.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/magiclabel.h b/src/magiclabel.h new file mode 100644 index 0000000..8db9fad --- /dev/null +++ b/src/magiclabel.h @@ -0,0 +1,44 @@ +/*************************************************************************** + * Copyright (C) by * + * - 2005: Christian Leh <[email protected]> * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#ifndef MAGICLABEL_H +#define MAGICLABEL_H + +#include <qstring.h> + +#include <kprocess.h> + +class MagicLabel : QObject +{ + Q_OBJECT + + private: + QString prefix; + QString preUSER; + QString preCMD; + + QString mValue; + + void transform(); + void getUserInfo(); + void getCommandOutput(); + + private slots: + void processExited(KProcess* proc); + void receivedStdout(KProcess *proc, char *buffer, int buflen); + + public: + MagicLabel(QString s, bool translate); + + inline QString& value() { return mValue; }; +}; + +#endif |