summaryrefslogtreecommitdiffstats
path: root/kresources/caldav/config.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-05-24 17:21:58 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-05-24 17:21:58 +0000
commita71c4476a79950040c9007f84af25cef4e28b351 (patch)
tree20d54bfeb827604e6b1c4ca01e9702346ddcc068 /kresources/caldav/config.h
parent45c9a75f1220817f57304df51e018f8cc66aaea4 (diff)
downloadtdepim-a71c4476a79950040c9007f84af25cef4e28b351.tar.gz
tdepim-a71c4476a79950040c9007f84af25cef4e28b351.zip
Initial CalDAV support
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1130194 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kresources/caldav/config.h')
-rw-r--r--kresources/caldav/config.h80
1 files changed, 80 insertions, 0 deletions
diff --git a/kresources/caldav/config.h b/kresources/caldav/config.h
new file mode 100644
index 000000000..5b0325994
--- /dev/null
+++ b/kresources/caldav/config.h
@@ -0,0 +1,80 @@
+/*=========================================================================
+| 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>
+#include <kresources/configwidget.h>
+
+class QLineEdit;
+class QCheckBox;
+
+namespace KCal {
+
+class CalDavReloadConfig;
+class CalDavSaveConfig;
+
+/*=========================================================================
+| CLASS
+ ========================================================================*/
+
+/**
+ * Configuration widget for CalDAV resource.
+ */
+class KDE_EXPORT ResourceCalDavConfig : public KRES::ConfigWidget
+{
+ Q_OBJECT
+
+public:
+
+ ResourceCalDavConfig(QWidget *parent = 0);
+
+public slots:
+
+ virtual void loadSettings(KRES::Resource *resource);
+ virtual void saveSettings(KRES::Resource *resource);
+
+protected:
+
+ virtual void setupUI();
+
+private:
+
+ QLineEdit *mUrl;
+ QLineEdit *mUsername;
+ QLineEdit *mPassword;
+ QCheckBox *mRememberPassword;
+ 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
+