ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/DecentralizedMedia/Library.hpp
Revision: 549
Committed: 2005-07-04T21:28:02-07:00 (19 years, 11 months ago) by douglas
File size: 726 byte(s)
Log Message:
WTF!

File Contents

# User Rev Content
1 douglas 542 // Library
2     //
3     // Douglas Thrift
4     //
5     // $Id$
6    
7     #ifndef _Library_hpp_
8     #define _Library_hpp_
9    
10     #include <menes/platform.hpp>
11    
12     #ifndef MENES_PRAGMA_ONCE
13     #pragma once
14     #endif
15    
16     #include "MediaFolder.hpp"
17    
18     class Library
19     {
20     private:
21     mutable _R<dbi::Connection> connection;
22     public:
23     Library(const _R<dbi::Connection>& connection);
24     _L<cse::String> GetArtists() const;
25     _L<cse::String> GetTitles() const;
26     _L<cse::String> GetAlbums() const;
27     _L<cse::String> GetGenres() const;
28     _L<MediaFolder> GetFolders() const;
29 douglas 549 _finline MediaFolder GetFolder(const api::Path& path) const { return MediaFolder(connection, path); }
30     _finline MediaFile GetFile(const api::Path& path) const { return MediaFile(connection, path); }
31 douglas 542 };
32    
33     #endif//_Library_hpp_

Properties

Name Value
svn:eol-style native
svn:keywords Id