summaryrefslogtreecommitdiffstats
path: root/kresources/carddav/writer.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/carddav/writer.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/carddav/writer.h')
-rw-r--r--kresources/carddav/writer.h109
1 files changed, 0 insertions, 109 deletions
diff --git a/kresources/carddav/writer.h b/kresources/carddav/writer.h
deleted file mode 100644
index 4af3fe36..00000000
--- a/kresources/carddav/writer.h
+++ /dev/null
@@ -1,109 +0,0 @@
-/*=========================================================================
-| KCardDAV
-|--------------------------------------------------------------------------
-| (c) 2010 Timothy Pearson
-|
-| This project is released under the GNU General Public License.
-| Please see the file COPYING for more details.
-|--------------------------------------------------------------------------
-| Remote address book writing class.
- ========================================================================*/
-
-/*=========================================================================
-| INCLUDES
- ========================================================================*/
-
-#ifndef KCARDDAV_WRITER_H
-#define KCARDDAV_WRITER_H
-
-#include "job.h"
-
-#include <string>
-#include <tqstring.h>
-#include <tqdatetime.h>
-
-namespace KABC {
-
-/*=========================================================================
-| CLASS
- ========================================================================*/
-
-/**
- * Calendar writer.
- */
-class CardDavWriter : public CardDavJob {
-
-public:
-
- /**
- * @param url URL to load.
- */
- CardDavWriter(const TQString& url = TQString()) :
- CardDavJob(url)
- {
- clearObjects();
- }
-
- /**
- * Sets the information about added incidences writer should send to server.
- * @param s icalendar-formatted string consists of all added incidences plus necessary calendar info.
- * May be an empty string, which means there is no added incidences to send.
- */
- void setAddedObjects(const TQString& s) {
- mAdded = s;
- }
-
- /**
- * Sets the information about changed incidences writer should send to server.
- * @param s icalendar-formatted string consists of all changed incidences plus necessary calendar info.
- * May be an empty string, which means there is no changed incidences to send.
- */
- void setChangedObjects(const TQString& s) {
- mChanged = s;
- }
-
- /**
- * Sets the information about deleted incidences writer should send to server.
- * @param s icalendar-formatted string consists of all deleted incidences plus necessary calendar info.
- * May be an empty string, which means there is no deleted incidences to send.
- */
- void setDeletedObjects(const TQString& s) {
- mDeleted = s;
- }
-
- /**
- * Clear all the information previously set.
- */
- void clearObjects() {
- setAddedObjects("");
- setChangedObjects("");
- setDeletedObjects("");
- }
-
-protected:
-
- virtual int runJob(runtime_info* caldavRuntime);
-
- virtual void cleanJob();
-
- /// Just a wrapper above libcaldav functions.
- template<typename Operation>
- int pushObjects(const TQString& data, Operation op, int okCode, runtime_info* RT) {
- int r = okCode;
- if (!data.isNull() && !data.isEmpty()) {
- r = op(std::string(data.ascii()).c_str(), std::string(url().ascii()).c_str(), RT);
- }
- return r;
- }
-
-private:
-
- TQString mAdded;
- TQString mChanged;
- TQString mDeleted;
-};
-
-} // namespace KABC
-
-#endif // KCARDDAV_WRITER_H
-