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
No related branches found
No related tags found
No related merge requests found
......@@ -307,17 +307,17 @@ void Media::RecordingModel::collectionAddedCallback(CollectionInterface* backend
}
///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();
configurationManager.setRecordPath(path.path());
configurationManager.setRecordPath(path);
}
///Return the path where recordings are going to be saved
QUrl Media::RecordingModel::recordPath() const
QString Media::RecordingModel::recordPath() const
{
ConfigurationManagerInterface& configurationManager = ConfigurationManager::instance();
return QUrl(configurationManager.getRecordPath());
return configurationManager.getRecordPath();
}
///are all calls recorded by default
......
......@@ -71,13 +71,13 @@ public:
virtual QHash<int,QByteArray> roleNames() const override;
//Getter
bool isAlwaysRecording() const;
QUrl recordPath () const;
int unreadCount () const;
bool isAlwaysRecording() const;
QString recordPath () const;
int unreadCount () const;
//Setter
void setAlwaysRecording( bool record );
void setRecordPath ( const QUrl& path );
void setAlwaysRecording( bool record );
void setRecordPath ( const QString& path );
//Mutator
TextRecording* createTextRecording(const ContactMethod* cm);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment