You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdewebdev/quanta/project/projecturl.h

65 lines
2.3 KiB

/***********************************************************************
projecturl.h - ProjectURL class definition
-------------------
begin : Wed Feb 18 2004
copyright : (C) 2004 by Andrei Berezin <aberezin@comcast.net>
***************************************************************************/
/***************************************************************************
* *
* 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 <tqdom.h>
#include <tqdict.h>
#include <tqstring.h>
#include <kurl.h>
/**
* Project item.
* Consists of URL and description text.
*/
class ProjectURL : public KURL
{
public:
TQString fileDesc;
int uploadtqStatus; ///< The upload state, see UploadtqStatus
bool documentFolder;
TQDomElement domElement;
ProjectURL()
: KURL(), uploadtqStatus(1), documentFolder(false) {}
ProjectURL(const KURL& url)
: KURL(url), uploadtqStatus(1), documentFolder(false) {}
ProjectURL(const KURL& url, const TQString& desc, int status, bool docFolder)
: KURL(url), fileDesc(desc), uploadtqStatus(status), documentFolder(docFolder) {}
ProjectURL(const KURL& url, const TQString& desc, int status, bool docFolder, TQDomElement el)
: KURL(url), fileDesc(desc), uploadtqStatus(status), documentFolder(docFolder), domElement(el) {}
virtual ~ProjectURL() {}
/** The default state for a file when uploading */
enum UploadtqStatus
{
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 TQDict<ProjectURL> ProjectUrlList;
#endif // PROJECT_URL_H