7 |
|
#ifndef _MediaFile_hpp_ |
8 |
|
#define _MediaFile_hpp_ |
9 |
|
|
10 |
< |
#include <menes/platform.hpp> |
10 |
> |
#include <menes/c++/platform.hpp> |
11 |
|
|
12 |
|
#ifdef MENES_PRAGMA_ONCE |
13 |
|
#pragma once |
14 |
|
#endif |
15 |
|
|
16 |
< |
#include <menes-api/path.hpp> |
17 |
< |
#include <menes-dbi/connection.hpp> |
16 |
> |
#include <menes/api/path.hpp> |
17 |
> |
|
18 |
> |
#include "Connector.hpp" |
19 |
|
|
20 |
|
class MediaFile |
21 |
|
{ |
22 |
|
private: |
23 |
< |
mutable _H<dbi::Connection> connection; |
23 |
> |
mutable _R<Connector> connector; |
24 |
|
public: |
25 |
|
api::Path path; |
26 |
< |
ext::String artist, title, album, genre; |
27 |
< |
MediaFile(_H<dbi::Connection>& connection, const api::Path& path); |
28 |
< |
MediaFile(_H<dbi::Connection>& connection, const api::Path& path, const ext::String& artist, const ext::String& title, const ext::String& album, const ext::String& genre); |
26 |
> |
cse::String artist, title, album, genre; |
27 |
> |
MediaFile(const _R<Connector>& connector, const api::Path& path); |
28 |
> |
MediaFile(const _R<Connector>& connector, const api::Path& path, const cse::String& artist, const cse::String& title, const cse::String& album, const cse::String& genre, const api::Path& root); |
29 |
|
}; |
30 |
|
|
31 |
|
#endif//_MediaFile_hpp_ |