diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /certmanager/lib/kleo/dn.h | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'certmanager/lib/kleo/dn.h')
-rw-r--r-- | certmanager/lib/kleo/dn.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/certmanager/lib/kleo/dn.h b/certmanager/lib/kleo/dn.h index 12bf9dc03..440bb4b0b 100644 --- a/certmanager/lib/kleo/dn.h +++ b/certmanager/lib/kleo/dn.h @@ -33,8 +33,8 @@ #ifndef __KLEO_DN_H__ #define __KLEO_DN_H__ -#include <qstring.h> -#include <qvaluevector.h> +#include <tqstring.h> +#include <tqvaluevector.h> #include <kdepimmacros.h> class QStringList; @@ -55,14 +55,14 @@ namespace Kleo { public: static const DNAttributeMapper * instance(); - QString name2label( const QString & s ) const; - QStringList names() const; + TQString name2label( const TQString & s ) const; + TQStringList names() const; - const QStringList & attributeOrder() const; + const TQStringList & attributeOrder() const; - void setAttributeOrder( const QStringList & order ); + void setAttributeOrder( const TQStringList & order ); - DNAttributeOrderConfigWidget * configWidget( QWidget * parent=0, const char * name=0 ) const; + DNAttributeOrderConfigWidget * configWidget( TQWidget * parent=0, const char * name=0 ) const; private: class Private; @@ -76,11 +76,11 @@ namespace Kleo { class KDE_EXPORT DN { public: class Attribute; - typedef QValueVector<Attribute> AttributeList; + typedef TQValueVector<Attribute> AttributeList; typedef AttributeList::const_iterator const_iterator; DN(); - DN( const QString & dn ); + DN( const TQString & dn ); DN( const char * utf8DN ); DN( const DN & other ); ~DN(); @@ -88,15 +88,15 @@ namespace Kleo { const DN & operator=( const DN & other ); /** @return the value in rfc-2253-escaped form */ - static QString escape( const QString & value ); + static TQString escape( const TQString & value ); /** @return the DN in a reordered form, according to the settings in the [DN] group of the application's config file */ - QString prettyDN() const; + TQString prettyDN() const; /** @return the DN in the original form */ - QString dn() const; + TQString dn() const; - QString operator[]( const QString & attr ) const; + TQString operator[]( const TQString & attr ) const; void append( const Attribute & attr ); @@ -114,7 +114,7 @@ namespace Kleo { public: typedef DN::AttributeList List; - Attribute( const QString & name=QString::null, const QString & value=QString::null ) + Attribute( const TQString & name=TQString::null, const TQString & value=TQString::null ) : mName( name.upper() ), mValue( value ) {} Attribute( const Attribute & other ) : mName( other.name() ), mValue( other.value() ) {} @@ -127,14 +127,14 @@ namespace Kleo { return *this; } - const QString & name() const { return mName; } - const QString & value() const { return mValue; } + const TQString & name() const { return mName; } + const TQString & value() const { return mValue; } - void setValue( const QString & value ) { mValue = value; } + void setValue( const TQString & value ) { mValue = value; } private: - QString mName; - QString mValue; + TQString mName; + TQString mValue; }; } |