summaryrefslogtreecommitdiffstats
path: root/kresources/caldav/reader.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 /kresources/caldav/reader.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 'kresources/caldav/reader.h')
-rw-r--r--kresources/caldav/reader.h112
1 files changed, 0 insertions, 112 deletions
diff --git a/kresources/caldav/reader.h b/kresources/caldav/reader.h
deleted file mode 100644
index 9bcc8c87a..000000000
--- a/kresources/caldav/reader.h
+++ /dev/null
@@ -1,112 +0,0 @@
-/*=========================================================================
-| 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.
-|--------------------------------------------------------------------------
-| Remote calendar loading class.
- ========================================================================*/
-
-/*=========================================================================
-| INCLUDES
- ========================================================================*/
-
-#ifndef KCALDAV_LOADER_H
-#define KCALDAV_LOADER_H
-
-#include "job.h"
-
-#include <tqstring.h>
-#include <tqdatetime.h>
-
-namespace KCal {
-
-/*=========================================================================
-| CLASS
- ========================================================================*/
-
-/**
- * Calendar Reader.
- */
-class CalDavReader : public CalDavJob {
-
-public:
-
- /**
- * @param url URL to load.
- */
- CalDavReader(const TQString& url = TQString()) :
- CalDavJob(url)
- , mGetAll(true)
- {
- }
-
- /**
- * Sets a time range. Only event between @p start and @p end will be loaded.
- * This method call disables the effect of setGetAll() call.
- * setGetAll() call disables the effect of this method.
- */
- void setRange(const TQDateTime& start, const TQDateTime& end) {
- mGetAll = false;
- mTimeStart = start;
- mTimeEnd = end;
- }
-
- /**
- * Sets the flag to load all events from the remote calendar.
- * This method call disables the effect of setRange() call.
- * setGetAll() call disables the effect of this method.
- */
- void setGetAll() {
- mGetAll = true;
- }
-
- /**
- * @return downloaded calendar data in iCal format.
- */
- TQString data() const {
- return mData;
- }
-
- /**
- * @return downloaded task data in iCal format.
- */
- TQString tasksData() const {
- return mTasksData;
- }
-
- /**
- * @return downloaded journal data in iCal format.
- */
- TQString journalsData() const {
- return mJournalsData;
- }
-
-protected:
-
- virtual int runJob(runtime_info* caldavRuntime);
- virtual int runTasksJob(runtime_info* caldavRuntime);
- virtual int runJournalsJob(runtime_info* caldavRuntime);
-
- virtual void cleanJob();
- virtual void cleanTasksJob();
- virtual void cleanJournalsJob();
-
-private:
-
- TQString mData;
- TQString mTasksData;
- TQString mJournalsData;
- bool mGetAll;
- TQDateTime mTimeStart;
- TQDateTime mTimeEnd;
-
-};
-
-} // namespace KCal
-
-#endif // KCALDAV_LOADER_H
-