diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-19 18:17:02 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-19 18:17:02 +0000 |
commit | f867212c1762e156553d039319b904a17f7b563d (patch) | |
tree | 461c1a743b3ff8291e03360742dbbfb4cc0087e4 /src/knutinstcomms.h | |
download | knutclient-f867212c1762e156553d039319b904a17f7b563d.tar.gz knutclient-f867212c1762e156553d039319b904a17f7b563d.zip |
Added KDE3 version of knutclient
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/knutclient@1092914 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/knutinstcomms.h')
-rwxr-xr-x | src/knutinstcomms.h | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/src/knutinstcomms.h b/src/knutinstcomms.h new file mode 100755 index 0000000..55e02b1 --- /dev/null +++ b/src/knutinstcomms.h @@ -0,0 +1,97 @@ +/*************************************************************************** + knutinstcomms.h - description + ------------------- + begin : ct ríj 24 2002 + copyright : (C) 2002 by Daniel Prynych + email : Daniel.Prynych@alo.cz + ***************************************************************************/ + +/*************************************************************************** + * * + * 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 KNUTINSTCOMMS_H +#define KNUTINSTCOMMS_H + +#include "knutnet.h" + +#include <kdialogbase.h> +#include <klineedit.h> +#include <kcombobox.h> +#include <klocale.h> + + +class QString; + + +/** + * This class is graphic interface for runinng of instant commands. + * Tato trida je graficke rozhrani pro spusteni okamzitych prikazu. + * + * @author Daniel Prynych + * @short Okamzite prikazy + * @version 0.4 +*/ +class KNutInstComms : public KDialogBase { +public: + + +/** + * Construktor - Creates window for select of instant command. + * Konstruktor - vytvori okno pro vyber okamziteho prikazu. + * + * @param uName Determines user name. + * @param password Determines passwprd. + * @param uName Urcuje uzivatelske jmeno. + * @param password Urcuje heslo. + * @param upsNet Je odkaz na instanci tridy KNutNet. + * + * @since 0.4 + **/ + KNutInstComms(QString* userName, QString* userPassword, const QString uName, const QString password, KNutNet* const upsNet, QWidget* parent = 0, const char* name = 0, bool const modal = TRUE); + +/** + * Destruktor + * + * @since 0.3 + **/ + ~KNutInstComms(); + + +/** + * Vraci true pokud existuje pripojeni na server a vytvorilo se + * ovladaci okno pro odeslani prikazu. + * + * @since 0.3 + **/ + bool upsOk (void) { return m_upsConnectOk; }; + + +private slots: +/** + * @internal + * + * Provede akci, da prikaz k provedeni okamziteho prikazu. + */ + virtual void slotOk(); + + +private: + KLineEdit *m_lineEditName; + KLineEdit *m_lineEditPassword; + KComboBox *m_instCommBox; + + KNutNet* m_upsNet; + bool m_upsConnectOk; + + QString* m_oldUserName; + QString* m_oldUserPassword; + +}; + +#endif |