00001 #ifndef VIDEOOPTIONS_HPP 00002 #define VIDEOOPTIONS_HPP 00003 00004 #ifdef HAVE_CONFIG_H 00005 #incude <config.h> 00006 #endif 00007 00008 #include <qcolor.h> 00009 #include <qdom.h> 00010 #include <qdict.h> 00011 #include <qfont.h> 00012 00013 /* 00014 Note: 'S' stands for 'Structure': this really isn't a class, merely 00015 a struct-with-functions. 00016 */ 00017 00018 struct SVideoOptions 00019 { 00020 private: 00021 QDomElement Me; 00022 00023 QDomText *pValues; 00024 QDict<QDomText> Opts; 00025 00026 void Populate(QDomDocument &doc); 00027 00028 public: 00029 SVideoOptions(QDomDocument &doc); 00030 SVideoOptions(const SVideoOptions &); 00031 ~SVideoOptions(); 00032 00033 void SetXML(const QDomElement &el); 00034 QDomNode GetXML(); 00035 00036 // attributes 00037 QString GetDeviceName() const; 00038 void SetDeviceName(const QString &name); 00039 QString GetNodeName() const; 00040 void SetNodeName(const QString &node); 00041 00042 // values 00043 QString GetBaseName() const; 00044 void SetBaseName(const QString &basename); 00045 00046 QColor GetTextColor() const; 00047 void SetTextColor(const QColor &color); 00048 void SetTextColor(const QString &color_name); 00049 00050 QFont GetTextFont() const; 00051 void SetTextFont(const QFont &font); 00052 void SetTextFont(const QString &font_name); 00053 00054 bool GetTimeInImage() const; 00055 void SetTimeInImage(bool); 00056 00057 QString GetFileFormat() const; 00058 void SetFileFormat(const QString &format); 00059 00060 int GetSaveOption() const; 00061 void SetSaveOption(int); 00062 00063 int GetSequence() const; 00064 void SetSequence(int); 00065 00066 int GetMaxSequence() const; 00067 void SetMaxSequence(int); 00068 00069 bool GetSaveToDisk() const; 00070 void SetSaveToDisk(bool); 00071 00072 bool GetFTPToServer() const; 00073 void SetFTPToServer(bool); 00074 00075 QString GetFTPServer() const; 00076 void SetFTPServer(const QString &server); 00077 00078 QString GetFTPPath() const; 00079 void SetFTPPath(const QString &path); 00080 00081 QString GetFTPUser() const; 00082 void SetFTPUser(const QString &user); 00083 00084 QString GetFTPPass() const; 00085 void SetFTPPass(const QString &pass); 00086 00087 bool GetFTPPassive() const; 00088 void SetFTPPassive(bool passive); 00089 00090 bool GetFTPUnique() const; 00091 void SetFTPUnique(bool unique); 00092 }; 00093 00094 #endif