summaryrefslogtreecommitdiffstats
path: root/quanta/project/projecturl.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commite9ae80694875f869892f13f4fcaf1170a00dea41 (patch)
treeaa2f8d8a217e2d376224c8d46b7397b68d35de2d /quanta/project/projecturl.h
downloadtdewebdev-e9ae80694875f869892f13f4fcaf1170a00dea41.tar.gz
tdewebdev-e9ae80694875f869892f13f4fcaf1170a00dea41.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'quanta/project/projecturl.h')
-rw-r--r--quanta/project/projecturl.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/quanta/project/projecturl.h b/quanta/project/projecturl.h
new file mode 100644
index 00000000..67299d90
--- /dev/null
+++ b/quanta/project/projecturl.h
@@ -0,0 +1,64 @@
+/***********************************************************************
+ projecturl.h - ProjectURL class definition
+ -------------------
+ begin : Wed Feb 18 2004
+ copyright : (C) 2004 by Andrei Berezin <[email protected]>
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef PROJECT_URL_H
+#define PROJECT_URL_H
+
+#include <qdom.h>
+#include <qdict.h>
+#include <qstring.h>
+
+#include <kurl.h>
+
+
+/**
+ * Project item.
+ * Consists of URL and description text.
+ */
+class ProjectURL : public KURL
+{
+public:
+ QString fileDesc;
+ int uploadStatus; ///< The upload state, see UploadStatus
+ bool documentFolder;
+ QDomElement domElement;
+
+ ProjectURL()
+ : KURL(), uploadStatus(1), documentFolder(false) {}
+
+ ProjectURL(const KURL& url)
+ : KURL(url), uploadStatus(1), documentFolder(false) {}
+
+ ProjectURL(const KURL& url, const QString& desc, int status, bool docFolder)
+ : KURL(url), fileDesc(desc), uploadStatus(status), documentFolder(docFolder) {}
+
+ ProjectURL(const KURL& url, const QString& desc, int status, bool docFolder, QDomElement el)
+ : KURL(url), fileDesc(desc), uploadStatus(status), documentFolder(docFolder), domElement(el) {}
+
+ virtual ~ProjectURL() {}
+
+ /** The default state for a file when uploading */
+ enum UploadStatus
+ {
+ NeverUpload = 0, ///< the files is not selected for upload, even if it was modified
+ AlwaysUpload, ///< the file is automatically selected for upload if it was modified
+ ConfirmUpload ///<the file is selected for upload, but the user must confirm the upload
+ };
+};
+
+typedef QDict<ProjectURL> ProjectUrlList;
+
+#endif // PROJECT_URL_H