Skip to content
Snippets Groups Projects
Commit 33ab79ea authored by Edric Milaret's avatar Edric Milaret
Browse files

recordingmodel: replace QUrl by QString

- QUrl doesn't handle Windows path correctly (C:..)

Change-Id: Ie8c0d3561d4ecff8778e6d78c98399a7596b1a8b
Tuleap: #TBD
parent 0e79b741
Branches
Tags
No related merge requests found
...@@ -307,17 +307,17 @@ void Media::RecordingModel::collectionAddedCallback(CollectionInterface* backend ...@@ -307,17 +307,17 @@ void Media::RecordingModel::collectionAddedCallback(CollectionInterface* backend
} }
///Set where the call recordings will be saved ///Set where the call recordings will be saved
void Media::RecordingModel::setRecordPath(const QUrl& path) void Media::RecordingModel::setRecordPath(const QString& path)
{ {
ConfigurationManagerInterface& configurationManager = ConfigurationManager::instance(); ConfigurationManagerInterface& configurationManager = ConfigurationManager::instance();
configurationManager.setRecordPath(path.path()); configurationManager.setRecordPath(path);
} }
///Return the path where recordings are going to be saved ///Return the path where recordings are going to be saved
QUrl Media::RecordingModel::recordPath() const QString Media::RecordingModel::recordPath() const
{ {
ConfigurationManagerInterface& configurationManager = ConfigurationManager::instance(); ConfigurationManagerInterface& configurationManager = ConfigurationManager::instance();
return QUrl(configurationManager.getRecordPath()); return configurationManager.getRecordPath();
} }
///are all calls recorded by default ///are all calls recorded by default
......
...@@ -72,12 +72,12 @@ public: ...@@ -72,12 +72,12 @@ public:
//Getter //Getter
bool isAlwaysRecording() const; bool isAlwaysRecording() const;
QUrl recordPath () const; QString recordPath () const;
int unreadCount () const; int unreadCount () const;
//Setter //Setter
void setAlwaysRecording( bool record ); void setAlwaysRecording( bool record );
void setRecordPath ( const QUrl& path ); void setRecordPath ( const QString& path );
//Mutator //Mutator
TextRecording* createTextRecording(const ContactMethod* cm); TextRecording* createTextRecording(const ContactMethod* cm);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment