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.
89 lines
2.3 KiB
89 lines
2.3 KiB
15 years ago
|
/*=========================================================================
|
||
|
| KCalDAV
|
||
|
|--------------------------------------------------------------------------
|
||
|
| (c) 2010 Timothy Pearson
|
||
|
| (c) 2009 Kumaran Santhanam (initial KDE4 version)
|
||
|
|
|
||
|
| This project is released under the GNU General Public License.
|
||
|
| Please see the file COPYING for more details.
|
||
|
|--------------------------------------------------------------------------
|
||
|
| Configuration and properties dialog
|
||
|
========================================================================*/
|
||
|
|
||
|
#ifndef KCAL_RESOURCECALDAVCONFIG_H
|
||
|
#define KCAL_RESOURCECALDAVCONFIG_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 KCal {
|
||
|
|
||
|
class CalDavReloadConfig;
|
||
|
class CalDavSaveConfig;
|
||
|
|
||
|
/*=========================================================================
|
||
|
| CLASS
|
||
|
========================================================================*/
|
||
|
|
||
|
/**
|
||
|
* Configuration widget for CalDAV resource.
|
||
|
*/
|
||
|
class KDE_EXPORT ResourceCalDavConfig : public KRES::ConfigWidget
|
||
|
{
|
||
|
Q_OBJECT
|
||
13 years ago
|
|
||
15 years ago
|
|
||
|
public:
|
||
|
|
||
14 years ago
|
ResourceCalDavConfig(TQWidget *parent = 0);
|
||
15 years ago
|
|
||
|
public slots:
|
||
|
|
||
|
virtual void loadSettings(KRES::Resource *resource);
|
||
|
virtual void saveSettings(KRES::Resource *resource);
|
||
|
|
||
14 years ago
|
void slotSTasksToggled( bool );
|
||
14 years ago
|
void slotSJournalsToggled( bool );
|
||
14 years ago
|
|
||
15 years ago
|
protected:
|
||
|
|
||
|
virtual void setupUI();
|
||
|
|
||
|
private:
|
||
|
|
||
15 years ago
|
TQLineEdit *mUrl;
|
||
14 years ago
|
TQLineEdit *mTasksUrl;
|
||
14 years ago
|
TQLineEdit *mJournalsUrl;
|
||
15 years ago
|
TQLineEdit *mUsername;
|
||
|
TQLineEdit *mPassword;
|
||
14 years ago
|
TQCheckBox *mUseSTasks;
|
||
14 years ago
|
TQCheckBox *mUseSJournals;
|
||
15 years ago
|
TQCheckBox *mRememberPassword;
|
||
15 years ago
|
CalDavReloadConfig* mReloadConfig;
|
||
|
CalDavSaveConfig* mSaveConfig;
|
||
|
|
||
|
static ResourceCalDav* getCalDavResource(KRES::Resource* res);
|
||
|
|
||
|
/**
|
||
|
* Returns preferences of the given ResourceCalDav object.
|
||
|
* @param res resource object.
|
||
|
* @return if preferences object is obtained successfully, it's returned. Otherwise, NULL is returned.
|
||
|
*/
|
||
|
static CalDavPrefs* getPrefs(ResourceCalDav* res);
|
||
|
};
|
||
|
|
||
|
} // namespace KCal
|
||
|
|
||
|
|
||
|
#endif // KCAL_RESOURCECALDAVCONFIG_H
|
||
|
|