~jamesh/storage-provider-webdav/landing-20161118

« back to all changes in this revision

Viewing changes to src/item_id.h

Add helper functions to convert between file IDs and URLs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#pragma once
 
2
 
 
3
#include <QUrl>
 
4
 
 
5
#include <string>
 
6
 
 
7
QUrl id_to_url(std::string const& item_id, QUrl const& base_url);
 
8
std::string url_to_id(QUrl const& item_url, QUrl const& base_url);