--- a/phonebookui/pbkcommonui/src/cnteditviewitembuilder.cpp Wed Jun 23 18:02:44 2010 +0300
+++ b/phonebookui/pbkcommonui/src/cnteditviewitembuilder.cpp Tue Jul 06 14:05:47 2010 +0300
@@ -21,6 +21,7 @@
#include "cntstringmapper.h"
#include "cntdetailorderinghelper.h"
#include <hbnumbergrouping.h>
+#include <QDir>
CntEditViewItemBuilder::CntEditViewItemBuilder() :
mMap( new CntStringMapper() )
@@ -394,6 +395,28 @@
return list;
}
+QList<CntEditViewItem*> CntEditViewItemBuilder::ringtoneDetails(QContact& aContact)
+{
+ QList<CntEditViewItem*> list;
+ // Ring Tone
+ QContactRingtone ringtone = aContact.detail<QContactRingtone>();
+ QUrl ringtoneUrl = ringtone.audioRingtoneUrl();
+ if ( !ringtoneUrl.isEmpty() )
+ {
+ CntEditViewDetailItem* detailItem = new CntEditViewDetailItem(
+ ringtone,
+ QContactRingtone::FieldAudioRingtoneUrl,
+ ringToneFetcherView);
+ detailItem->addText( hbTrId("txt_phob_formlabel_ringing_tone") );
+ QFileInfo ringtoneFileInfo(ringtoneUrl.toString());
+ QString ringtoneFileName = ringtoneFileInfo.fileName();
+ detailItem->addText( ringtoneFileName);
+ list.append( detailItem );
+ }
+
+ return list;
+}
+
bool CntEditViewItemBuilder::isTemplateItem( const QString& aDefinition )
{
QStringList templateItems;