You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
2.1 KiB
82 lines
2.1 KiB
15 years ago
|
/*=========================================================================
|
||
|
| 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>
|
||
12 years ago
|
#include <tderesources/configwidget.h>
|
||
15 years ago
|
|
||
15 years ago
|
class TQLineEdit;
|
||
|
class TQCheckBox;
|
||
15 years ago
|
|
||
|
namespace KABC {
|
||
|
|
||
|
class CardDavReloadConfig;
|
||
|
class CardDavSaveConfig;
|
||
|
|
||
|
/*=========================================================================
|
||
|
| CLASS
|
||
|
========================================================================*/
|
||
|
|
||
|
/**
|
||
|
* Configuration widget for CardDAV resource.
|
||
|
*/
|
||
|
class KDE_EXPORT ResourceCardDavConfig : public KRES::ConfigWidget
|
||
|
{
|
||
|
Q_OBJECT
|
||
13 years ago
|
|
||
15 years ago
|
|
||
|
public:
|
||
|
|
||
13 years ago
|
ResourceCardDavConfig(TQWidget *parent = 0);
|
||
15 years ago
|
|
||
|
public slots:
|
||
|
|
||
|
virtual void loadSettings(KRES::Resource *resource);
|
||
|
virtual void saveSettings(KRES::Resource *resource);
|
||
|
|
||
|
protected:
|
||
|
|
||
|
virtual void setupUI();
|
||
|
|
||
|
private:
|
||
|
|
||
15 years ago
|
TQLineEdit *mUrl;
|
||
|
TQLineEdit *mUsername;
|
||
|
TQLineEdit *mPassword;
|
||
|
TQCheckBox *mRememberPassword;
|
||
|
TQCheckBox *mUseUriNotUID;
|
||
15 years ago
|
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 KABC
|
||
|
|
||
|
|
||
|
#endif // KABC_RESOURCECARDDAVCONFIG_H
|
||
|
|