Diffstat (limited to 'libopie2/opiepim/core/opimrecord.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie2/opiepim/core/opimrecord.cpp | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/libopie2/opiepim/core/opimrecord.cpp b/libopie2/opiepim/core/opimrecord.cpp index 6546d99..60946e0 100644 --- a/libopie2/opiepim/core/opimrecord.cpp +++ b/libopie2/opiepim/core/opimrecord.cpp | |||
@@ -97,37 +97,21 @@ void OPimRecord::setCategoryNames( const QStringList& ) | |||
97 | 97 | ||
98 | 98 | ||
99 | void OPimRecord::addCategoryName( const QString& ) | 99 | void OPimRecord::addCategoryName( const QString& ) |
100 | { | 100 | { |
101 | Categories catDB; | 101 | Categories catDB; |
102 | catDB.load( categoryFileName() ); | 102 | catDB.load( categoryFileName() ); |
103 | |||
104 | |||
105 | } | 103 | } |
106 | 104 | ||
107 | 105 | ||
108 | bool OPimRecord::isEmpty() const | 106 | bool OPimRecord::isEmpty() const |
109 | { | 107 | { |
110 | return ( uid() == 0 ); | 108 | return ( uid() == 0 ); |
111 | } | 109 | } |
112 | 110 | ||
113 | 111 | ||
114 | /*QString OPimRecord::crossToString()const { | ||
115 | QString str; | ||
116 | QMap<QString, QArray<int> >::ConstIterator it; | ||
117 | for (it = m_relations.begin(); it != m_relations.end(); ++it ) { | ||
118 | QArray<int> id = it.data(); | ||
119 | for ( uint i = 0; i < id.size(); ++i ) { | ||
120 | str += it.key() + "," + QString::number( i ) + ";"; | ||
121 | } | ||
122 | } | ||
123 | str = str.remove( str.length()-1, 1); // strip the ; | ||
124 | //owarn << "IDS " + str << oendl; | ||
125 | |||
126 | return str; | ||
127 | }*/ | ||
128 | /* if uid = 1 assign a new one */ | 112 | /* if uid = 1 assign a new one */ |
129 | void OPimRecord::setUid( int uid ) | 113 | void OPimRecord::setUid( int uid ) |
130 | { | 114 | { |
131 | if ( uid == 1 ) | 115 | if ( uid == 1 ) |
132 | uid = uidGen().generate(); | 116 | uid = uidGen().generate(); |
133 | 117 | ||
@@ -267,7 +251,14 @@ QMap<QString, QString> OPimRecord::toExtraMap() const | |||
267 | 251 | ||
268 | void OPimRecord::setExtraMap( const QMap<QString, QString>& map ) | 252 | void OPimRecord::setExtraMap( const QMap<QString, QString>& map ) |
269 | { | 253 | { |
270 | customMap = map; | 254 | customMap = map; |
271 | } | 255 | } |
272 | 256 | ||
257 | #if 0 | ||
258 | QString OPimRecord::recordAttributeTranslated( int field )const | ||
259 | { | ||
260 | return recordAttributeTranslated()[field]; | ||
261 | } | ||
262 | #endif | ||
263 | |||
273 | } | 264 | } |