ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/DecentralizedMedia/Library.hpp
Revision: 560
Committed: 2005-08-27T17:38:18-07:00 (19 years, 9 months ago) by douglas
File size: 960 byte(s)
Log Message:
Hmm, no worky yet.

File Contents

# Content
1 // Library
2 //
3 // Douglas Thrift
4 //
5 // $Id$
6
7 #ifndef _Library_hpp_
8 #define _Library_hpp_
9
10 #include <cxx/platform.hpp>
11
12 #ifndef MENES_PRAGMA_ONCE
13 #pragma once
14 #endif
15
16 #include "By.hpp"
17 #include "MediaFolder.hpp"
18
19 class Library
20 {
21 private:
22 mutable _R<Connector> connector;
23 public:
24 Library(const _R<Connector>& connector);
25 _L<MediaFolder> GetFolders(unsigned page) const;
26 unsigned GetFoldersPages() const;
27 _finline MediaFolder GetFolder(const api::Path& path) const { return MediaFolder(connector, path); }
28 _L<MediaFile> GetFiles(const _L<By>& bys, const _L<cse::String>& items, unsigned page) const;
29 unsigned GetFilesPages(const _L<By>& bys, const _L<cse::String>& items) const;
30 _finline MediaFile GetFile(const api::Path& path) const { return MediaFile(connector, path); }
31 _L<cse::String> GetItems(_L<By> bys, _L<cse::String> items, unsigned page) const;
32 unsigned GetItemsPages(_L<By> bys, const _L<cse::String>& items) const;
33 };
34
35 #endif//_Library_hpp_

Properties

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