-rw-r--r-- | kabc/formatfactory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kabc/formatfactory.cpp b/kabc/formatfactory.cpp index 3ae1c27..cbb97a2 100644 --- a/kabc/formatfactory.cpp +++ b/kabc/formatfactory.cpp | |||
@@ -81,49 +81,49 @@ US lets enter all resources directly instead of using teh desktopfiles. | |||
81 | mFormatList.insert( type, info ); | 81 | mFormatList.insert( type, info ); |
82 | } | 82 | } |
83 | #endif | 83 | #endif |
84 | //US we already have vcard as default format. | 84 | //US we already have vcard as default format. |
85 | info = new FormatInfo; | 85 | info = new FormatInfo; |
86 | info->library = i18n("microkabcformat_binary"); | 86 | info->library = i18n("microkabcformat_binary"); |
87 | info->nameLabel = i18n( "Binary" ); | 87 | info->nameLabel = i18n( "Binary" ); |
88 | info->descriptionLabel = i18n( "No description available." ); | 88 | info->descriptionLabel = i18n( "No description available." ); |
89 | mFormatList.insert( "binary", info ); | 89 | mFormatList.insert( "binary", info ); |
90 | 90 | ||
91 | } | 91 | } |
92 | 92 | ||
93 | FormatFactory::~FormatFactory() | 93 | FormatFactory::~FormatFactory() |
94 | { | 94 | { |
95 | mFormatList.clear(); | 95 | mFormatList.clear(); |
96 | } | 96 | } |
97 | 97 | ||
98 | QStringList FormatFactory::formats() | 98 | QStringList FormatFactory::formats() |
99 | { | 99 | { |
100 | QStringList retval; | 100 | QStringList retval; |
101 | 101 | ||
102 | // make sure 'vcard' is the first entry | 102 | // make sure 'vcard' is the first entry |
103 | retval << "vcard"; | 103 | retval << "vcard"; |
104 | 104 | ||
105 | QDictIterator<FormatInfo> it( mFormatList ); | 105 | Q3DictIterator<FormatInfo> it( mFormatList ); |
106 | for ( ; it.current(); ++it ) | 106 | for ( ; it.current(); ++it ) |
107 | if ( it.currentKey() != "vcard" ) | 107 | if ( it.currentKey() != "vcard" ) |
108 | retval << it.currentKey(); | 108 | retval << it.currentKey(); |
109 | 109 | ||
110 | return retval; | 110 | return retval; |
111 | } | 111 | } |
112 | 112 | ||
113 | FormatInfo *FormatFactory::info( const QString &type ) | 113 | FormatInfo *FormatFactory::info( const QString &type ) |
114 | { | 114 | { |
115 | if ( type.isEmpty() ) | 115 | if ( type.isEmpty() ) |
116 | return 0; | 116 | return 0; |
117 | else | 117 | else |
118 | return mFormatList[ type ]; | 118 | return mFormatList[ type ]; |
119 | } | 119 | } |
120 | 120 | ||
121 | FormatPlugin *FormatFactory::format( const QString& type ) | 121 | FormatPlugin *FormatFactory::format( const QString& type ) |
122 | { | 122 | { |
123 | FormatPlugin *format = 0; | 123 | FormatPlugin *format = 0; |
124 | 124 | ||
125 | if ( type.isEmpty() ) | 125 | if ( type.isEmpty() ) |
126 | return 0; | 126 | return 0; |
127 | 127 | ||
128 | if ( type == "vcard" ) { | 128 | if ( type == "vcard" ) { |
129 | format = new VCardFormatPlugin; | 129 | format = new VCardFormatPlugin; |