~ubuntu-branches/ubuntu/utopic/knutclient/utopic

« back to all changes in this revision

Viewing changes to src/knutrwvar.h

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Quette
  • Date: 2009-03-30 09:29:30 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090330092930-fohi8lm9okac7mtl
Tags: 0.9.5-1
* New upstream release
* debian/rules: remove the empty TODO file from dh_installdocs
* debian/control: add a missing comma on Depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include <klocale.h>
26
26
#include <kcombobox.h>
27
27
 
28
 
//#include <qstring.h>
29
 
//#include <qlayout.h>
30
28
 
31
29
class QString;
32
30
class QGridLayout;
33
31
 
34
32
/**
 
33
 * This class is graphics interface for changes of RW variables.
35
34
 * Tato trida je graficke rozhrani pro zmenu RW promennych.
36
35
 *
37
36
 * @author Daniel Prynych
38
37
 * @short RW promenne
39
 
 * @version 0.1.1
 
38
 * @version 0.2
40
39
*/
41
40
class KNutRWVar : public KDialogBase  {
42
41
  Q_OBJECT
43
42
  public: 
44
43
/**
 
44
 * Constructor - makes window for change of RW variable.
45
45
 * Konstruktor - vytvori okno pro zmenu RW promene.
46
46
 *
 
47
 
 
48
 * @param uName Describes user name.
 
49
 * @param password Describes password.
 
50
 * @param initUpsNet is pointer of intance of class KNutNet.
 
51
 * @param userName Urcuje uzivatelske jmeno.
 
52
 * @param userPassword Urcuje heslo.
47
53
 * @param uName Urcuje uzivatelske jmeno.
48
54
 * @param password Urcuje heslo.
49
 
 * @param upsNet Je odkaz na instanci tridy KNutNet.
50
 
 * @since  0.1
 
55
 * @param initUpsNet Je odkaz na instanci tridy KNutNet.
 
56
 * @since  0.2
51
57
 **/
52
58
  KNutRWVar(QString* userName, QString* userPassword, const QString uName, const QString password, KNutNet* const initUpsNet, QWidget* parent = 0, const char* name = 0, const bool modal = TRUE);
53
59
 
54
60
/**
55
 
 * Destruktor
 
61
 * Destructor
56
62
 *
57
63
 * @since  0.2
58
64
 **/
66
72
 **/
67
73
  bool upsOk (void);
68
74
 
69
 
  
 
75
 
70
76
  private slots:
71
77
 
72
78
/**
79
85
/**
80
86
 * @internal
81
87
 *
 
88
 * Sets value of variable on default value
82
89
 * Nastavi hodnotu promenne na puvodni hodnotu.
83
90
 */
84
91
  virtual void slotDefault ();
91
98
  virtual void slotOk();
92
99
 
93
100
 
94
 
 
 
101
 
95
102
/**
96
103
 * @internal
97
104
 *
 
105
 * Find asked item in box
 
106
 * Since at version 3.0.0 is not needed. 
98
107
 * Najde pozadovanou polozku v boxu.
99
108
 * Ve verzi qt > 3.0.0 neni potreba.
100
109
 */
111
120
  void signalChangeRWVars (QString varName);
112
121
 
113
122
 
114
 
    private:
115
 
    KNutNet* myUpsNet;
116
 
    KLineEdit *lineEditName;
117
 
    KLineEdit *lineEditPassword;
118
 
    KComboBox *rWVarBox;
119
 
    KComboBox *valueVarBox;
120
 
    KLineEdit *valueVarLine;
121
 
    QGridLayout *passLayout;
122
 
    bool upsValueType;
123
 
    bool upsConnectOk;
124
 
 
125
 
  QString* oldUserName;
126
 
  QString* oldUserPassword;
127
 
 
128
 
    
 
123
  private:
 
124
  KNutNet* m_upsNet;
 
125
  KLineEdit *m_lineEditName;
 
126
  KLineEdit *m_lineEditPassword;
 
127
  KComboBox *m_rWVarBox;
 
128
  KComboBox *m_valueVarBox;
 
129
  KLineEdit *m_valueVarLine;
 
130
  QGridLayout *m_passLayout;
 
131
  bool m_upsValueType;
 
132
  bool m_upsConnectOk;
 
133
 
 
134
  QString* m_oldUserName;
 
135
  QString* m_oldUserPassword;
 
136
 
 
137
 
129
138
  };
130
139
 
131
140
#endif