blob: e991972372e066140bf96d14b98be2bb7020e3aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
/*=========================================================================
| KCardDAV
|--------------------------------------------------------------------------
| (c) 2010 Timothy Pearson
|
| This project is released under the GNU General Public License.
| Please see the file COPYING for more details.
|--------------------------------------------------------------------------
| Configuration and properties dialog
========================================================================*/
#ifndef KABC_RESOURCECARDDAVCONFIG_H
#define KABC_RESOURCECARDDAVCONFIG_H
/*=========================================================================
| INCLUDES
========================================================================*/
#include "resource.h"
#include <kdemacros.h>
#include <tderesources/configwidget.h>
class TQLineEdit;
class TQCheckBox;
namespace TDEABC {
class CardDavReloadConfig;
class CardDavSaveConfig;
/*=========================================================================
| CLASS
========================================================================*/
/**
* Configuration widget for CardDAV resource.
*/
class KDE_EXPORT ResourceCardDavConfig : public KRES::ConfigWidget
{
Q_OBJECT
public:
ResourceCardDavConfig(TQWidget *parent = 0);
public slots:
virtual void loadSettings(KRES::Resource *resource);
virtual void saveSettings(KRES::Resource *resource);
protected:
virtual void setupUI();
private:
TQLineEdit *mUrl;
TQLineEdit *mUsername;
TQLineEdit *mPassword;
TQCheckBox *mRememberPassword;
TQCheckBox *mUseUriNotUID;
CardDavReloadConfig* mReloadConfig;
CardDavSaveConfig* mSaveConfig;
static ResourceCardDav* getCardDavResource(KRES::Resource* res);
/**
* Returns preferences of the given ResourceCardDav object.
* @param res resource object.
* @return if preferences object is obtained successfully, it's returned. Otherwise, NULL is returned.
*/
static CardDavPrefs* getPrefs(ResourceCardDav* res);
};
} // namespace TDEABC
#endif // KABC_RESOURCECARDDAVCONFIG_H
|