From e9ae80694875f869892f13f4fcaf1170a00dea41 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: 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 --- quanta/project/projecturl.h | 64 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 quanta/project/projecturl.h (limited to 'quanta/project/projecturl.h') 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 + ***************************************************************************/ + +/*************************************************************************** + * * + * 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 +#include +#include + +#include + + +/** + * 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 /// ProjectUrlList; + +#endif // PROJECT_URL_H -- cgit v1.2.1