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