qtcontactsmobility/plugins/contacts/symbian/src/transform/cnttransformavatar.cpp
changeset 31 2a11b5b00470
parent 27 de1630741fbe
equal deleted inserted replaced
27:de1630741fbe 31:2a11b5b00470
    97 }
    97 }
    98 
    98 
    99 bool CntTransformAvatar::supportsField(TUint32 fieldType) const
    99 bool CntTransformAvatar::supportsField(TUint32 fieldType) const
   100 {
   100 {
   101     bool ret = false;
   101     bool ret = false;
   102     if (fieldType == KUidContactFieldCodImage.iUid)
   102     if (fieldType == KUidContactFieldCodImage.iUid) {
   103         ret = true;
   103         ret = true;
       
   104     }
   104     return ret;
   105     return ret;
   105 }
   106 }
   106 
   107 
   107 bool CntTransformAvatar::supportsDetail(QString detailName) const
   108 bool CntTransformAvatar::supportsDetail(QString detailName) const
   108 {
   109 {
   126  * \a subType The subtype to be checked
   127  * \a subType The subtype to be checked
   127  * \return True if this subtype is supported
   128  * \return True if this subtype is supported
   128  */
   129  */
   129 bool CntTransformAvatar::supportsSubType(const QString& /*subType*/) const
   130 bool CntTransformAvatar::supportsSubType(const QString& /*subType*/) const
   130 {
   131 {
   131     // XXX todo
       
   132     return false;
   132     return false;
   133 }
   133 }
   134 
   134 
   135 /*!
   135 /*!
   136  * Returns the filed id corresponding to a field
   136  * Returns the filed id corresponding to a field
   137  *
   137  *
   138  * \a fieldName The name of the supported field
   138  * \a fieldName The name of the supported field
   139  * \return fieldId for the fieldName, 0  if not supported
   139  * \return fieldId for the fieldName, 0  if not supported
   140  */
   140  */
   141 quint32 CntTransformAvatar::getIdForField(const QString& /*fieldName*/) const
   141 quint32 CntTransformAvatar::getIdForField(const QString& fieldName) const
   142 {
   142 {
   143     // XXX todo
   143     if (QContactAvatar::FieldImageUrl  == fieldName)
   144     return 0;
   144         return 0;
       
   145     else
       
   146         return 0;
   145 }
   147 }
   146 
   148 
   147 /*!
   149 /*!
   148  * Modifies the detail definitions. The default detail definitions are
   150  * Modifies the detail definitions. The default detail definitions are
   149  * queried from QContactManagerEngine::schemaDefinitions and then modified
   151  * queried from QContactManagerEngine::schemaDefinitions and then modified