~ubuntu-branches/ubuntu/vivid/psi/vivid

« back to all changes in this revision

Viewing changes to src/proxy.h

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2008-08-28 18:46:52 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080828184652-iiik12dl91nq7cdi
Tags: 0.12-2
Uploading to unstable (Closes: Bug#494352)

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
#include "ui_proxy.h"
28
28
 
 
29
class OptionsTree;
29
30
class QDomElement;
30
31
class QDomDocument;
31
32
 
61
62
        bool useAuth;
62
63
        QString url;
63
64
 
 
65
        
 
66
        void toOptions(OptionsTree* o, QString base) const;
 
67
        void fromOptions(OptionsTree* o, QString base);
64
68
        QDomElement toXml(QDomDocument *) const;
65
69
        bool fromXml(const QDomElement &);
66
70
};
90
94
{
91
95
        Q_OBJECT
92
96
public:
93
 
        ProxyDlg(const ProxyItemList &, const QStringList &, int def, QWidget *parent=0);
 
97
        ProxyDlg(const ProxyItemList &, const QStringList &, const QString &def, QWidget *parent=0);
94
98
        ~ProxyDlg();
95
99
 
96
100
signals:
122
126
        ProxyChooser(ProxyManager *, QWidget *parent=0, const char *name=0);
123
127
        ~ProxyChooser();
124
128
 
125
 
        int currentItem() const;
126
 
        void setCurrentItem(int);
 
129
        QString currentItem() const;
 
130
        void setCurrentItem(const QString &item);
127
131
        void fixTabbing(QWidget *a, QWidget *b);
128
132
 
129
133
private slots:
130
134
        void pm_settingsChanged();
 
135
        void pm_settingsChangedApply();
131
136
        void doOpen();
132
137
 
133
138
private:
142
147
public:
143
148
        ProxyItem() {}
144
149
 
145
 
        int id; // used to keep track of 'old' position in a list
 
150
        QString id;
146
151
        QString name;
147
152
        QString type;
148
153
        ProxySettings settings;
152
157
{
153
158
        Q_OBJECT
154
159
public:
155
 
        ProxyManager(QObject *parent=0);
 
160
        ProxyManager(OptionsTree *o, QObject *parent=0);
156
161
        ~ProxyManager();
157
162
 
158
163
        ProxyChooser *createProxyChooser(QWidget *parent=0);
159
164
        ProxyItemList itemList() const;
160
 
        const ProxyItem & getItem(int) const;
161
 
        int lastEdited() const;
162
 
        void setItemList(const ProxyItemList &);
 
165
        ProxyItem getItem(const QString &id) const;
 
166
        QString lastEdited() const;
 
167
        void migrateItemList(const ProxyItemList &);
163
168
        QStringList methodList() const;
164
 
        int findOldIndex(int) const;
 
169
//      int findOldIndex(int) const;
165
170
 
166
171
signals:
167
172
        void settingsChanged();
 
173
        void proxyRemoved(QString);
168
174
 
169
175
public slots:
170
 
        void openDialog(int);
 
176
        void openDialog(QString);
171
177
 
172
178
private slots:
173
179
        void pd_applyList(const ProxyItemList &, int cur);
175
181
private:
176
182
        class Private;
177
183
        Private *d;
178
 
 
179
 
        void assignIds();
180
184
};
181
185
 
182
186
#endif