summaryrefslogtreecommitdiffstats
path: root/tderesources/caldav/config.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-26 13:17:50 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-26 13:17:50 -0600
commitb363d2579af0a11b77e698aed2e1021c2233b644 (patch)
treef4a47b87354b7a6a3b266c8121bd8ddaeb7accaa /tderesources/caldav/config.h
parent61bddfe3a7226b18c68a76124b727c736f431688 (diff)
downloadtdepim-b363d2579af0a11b77e698aed2e1021c2233b644.tar.gz
tdepim-b363d2579af0a11b77e698aed2e1021c2233b644.zip
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'tderesources/caldav/config.h')
-rw-r--r--tderesources/caldav/config.h88
1 files changed, 88 insertions, 0 deletions
diff --git a/tderesources/caldav/config.h b/tderesources/caldav/config.h
new file mode 100644
index 000000000..fe03114c3
--- /dev/null
+++ b/tderesources/caldav/config.h
@@ -0,0 +1,88 @@
+/*=========================================================================
+| 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 <tderesources/configwidget.h>
+
+class TQLineEdit;
+class TQCheckBox;
+
+namespace KCal {
+
+class CalDavReloadConfig;
+class CalDavSaveConfig;
+
+/*=========================================================================
+| CLASS
+ ========================================================================*/
+
+/**
+ * Configuration widget for CalDAV resource.
+ */
+class KDE_EXPORT ResourceCalDavConfig : public KRES::ConfigWidget
+{
+ Q_OBJECT
+
+
+public:
+
+ ResourceCalDavConfig(TQWidget *parent = 0);
+
+public slots:
+
+ virtual void loadSettings(KRES::Resource *resource);
+ virtual void saveSettings(KRES::Resource *resource);
+
+ void slotSTasksToggled( bool );
+ void slotSJournalsToggled( bool );
+
+protected:
+
+ virtual void setupUI();
+
+private:
+
+ TQLineEdit *mUrl;
+ TQLineEdit *mTasksUrl;
+ TQLineEdit *mJournalsUrl;
+ TQLineEdit *mUsername;
+ TQLineEdit *mPassword;
+ TQCheckBox *mUseSTasks;
+ TQCheckBox *mUseSJournals;
+ TQCheckBox *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
+