contentstorage/caclient/src/caentry.cpp
changeset 125 26079c1bb561
parent 112 dbfb5e38438b
child 127 7b66bc3c6dc9
--- a/contentstorage/caclient/src/caentry.cpp	Mon Sep 27 11:31:59 2010 +0300
+++ b/contentstorage/caclient/src/caentry.cpp	Wed Oct 06 16:00:22 2010 +0300
@@ -403,6 +403,27 @@
 }
 
 /*!
+ Removes attribute.
+ \param name name of an attribute.
+
+ \code
+ ...
+ QString attrName_1( "name_1" );
+ QString attrValue_1( "value_1" );
+ QString attrName_2( "name_2" );
+ QString attrValue_2( "value_2" );
+ resultEntry->setAttribute( attrName_1, attrValue_1 );
+ resultEntry->setAttribute( attrName_2, attrValue_2 );
+ resultEntry->removeAttribute( attrName_2 );
+
+ \endcode
+ */
+void CaEntry::removeAttribute(const QString &name)
+{
+    m_d->removeAttribute(name);
+}
+
+/*!
  Creates an icon.
  \param  size icon size to display
  \retval created icon (HbIcon).
@@ -641,6 +662,14 @@
 }
 
 /*!
+ Removes attribute.
+ \param name name of an attribute.
+ */
+void CaEntryPrivate::removeAttribute(const QString &name)
+{
+    mAttributes.remove(name);
+}
+/*!
  Creates an icon.
  \param  size icon size to display
  \retval created icon (HbIcon).