diff options
Diffstat (limited to 'libk9copy/k9videocodecs.cpp')
-rw-r--r-- | libk9copy/k9videocodecs.cpp | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/libk9copy/k9videocodecs.cpp b/libk9copy/k9videocodecs.cpp index 8e91793..306b1da 100644 --- a/libk9copy/k9videocodecs.cpp +++ b/libk9copy/k9videocodecs.cpp @@ -10,33 +10,33 @@ // // #include "k9videocodecs.h" -#include <qstringlist.h> +#include <tqstringlist.h> class _k9VideoCodec { public: _k9VideoCodec():name(""),fourcc(""),optPass1(""),optPass2(""),optOnePass(""){}; - _k9VideoCodec(QString _name,QString _fourcc,QString _optOnePass,QString _optPass1,QString _optPass2) { + _k9VideoCodec(TQString _name,TQString _fourcc,TQString _optOnePass,TQString _optPass1,TQString _optPass2) { name=_name; fourcc=_fourcc; optOnePass=_optOnePass; optPass1=_optPass1; optPass2=_optPass2; } - QString name; - QString fourcc; - QString optOnePass; - QString optPass1; - QString optPass2; + TQString name; + TQString fourcc; + TQString optOnePass; + TQString optPass1; + TQString optPass2; }; -k9VideoCodecs::k9VideoCodecs(QObject *parent, const char *name) - : QObject(parent, name) +k9VideoCodecs::k9VideoCodecs(TQObject *tqparent, const char *name) + : TQObject(tqparent, name) { m_config=new k9Config(); - QStringList slLabels=m_config->getCodecLabels(); - QStringList slCodecs=m_config->getCodecVideo(); + TQStringList slLabels=m_config->getCodecLabels(); + TQStringList slCodecs=m_config->getCodecVideo(); bool bReset; bReset=slLabels.count()==0; if (!bReset) @@ -49,16 +49,16 @@ k9VideoCodecs::k9VideoCodecs(QObject *parent, const char *name) slCodecs=m_config->getCodecVideo(); } - QStringList::iterator c=slCodecs.begin(); + TQStringList::iterator c=slCodecs.begin(); int cpt=0; - for (QStringList::iterator i=slLabels.begin();i!=slLabels.end() ;++i) { - QString fourcc=(*c); + for (TQStringList::iterator i=slLabels.begin();i!=slLabels.end() ;++i) { + TQString fourcc=(*c); c++; - QString o1=(*c); + TQString o1=(*c); c++; - QString o2=(*c); + TQString o2=(*c); c++; - QString o3=(*c); + TQString o3=(*c); c++; m_codecs[cpt++]=_k9VideoCodec((*i),fourcc,o1,o2,o3); @@ -97,9 +97,9 @@ void k9VideoCodecs::reset() { void k9VideoCodecs::save() { m_config=new k9Config(); - QStringList labels; - QStringList options; - for (QMap<int,_k9VideoCodec>::iterator i=m_codecs.begin();i!=m_codecs.end();++i) { + TQStringList labels; + TQStringList options; + for (TQMap<int,_k9VideoCodec>::iterator i=m_codecs.begin();i!=m_codecs.end();++i) { labels << i.data().name; options << i.data().fourcc; options << i.data().optOnePass; @@ -119,39 +119,39 @@ int k9VideoCodecs::count() { return m_codecs.count(); } -void k9VideoCodecs::setFourcc(int _num,QString _value) { +void k9VideoCodecs::setFourcc(int _num,TQString _value) { m_codecs[_num].fourcc=_value; } -void k9VideoCodecs::setOptions0(int _num,QString _value) { +void k9VideoCodecs::setOptions0(int _num,TQString _value) { m_codecs[_num].optOnePass=_value; } -void k9VideoCodecs::setOptions1(int _num,QString _value) { +void k9VideoCodecs::setOptions1(int _num,TQString _value) { m_codecs[_num].optPass1=_value; } -void k9VideoCodecs::setOptions2(int _num,QString _value) { +void k9VideoCodecs::setOptions2(int _num,TQString _value) { m_codecs[_num].optPass2=_value; } -void k9VideoCodecs::setCodecName(int _num,QString _value) { +void k9VideoCodecs::setCodecName(int _num,TQString _value) { m_codecs[_num].name=_value; } -QString k9VideoCodecs::getFourcc(int _num) { +TQString k9VideoCodecs::getFourcc(int _num) { return m_codecs[_num].fourcc; } -QString k9VideoCodecs::getOptions0(int _num) { +TQString k9VideoCodecs::getOptions0(int _num) { return m_codecs[_num].optOnePass; } -QString k9VideoCodecs::getOptions1(int _num) { +TQString k9VideoCodecs::getOptions1(int _num) { return m_codecs[_num].optPass1; } -QString k9VideoCodecs::getOptions2(int _num) { +TQString k9VideoCodecs::getOptions2(int _num) { return m_codecs[_num].optPass2; } -QString k9VideoCodecs::getCodecName(int _num) { +TQString k9VideoCodecs::getCodecName(int _num) { return m_codecs[_num].name; } |