~unity-api-team/storage-framework/vivid

« back to all changes in this revision

Viewing changes to include/unity/storage/qt/client/File.h

  • Committer: Michi Henning
  • Date: 2016-05-23 02:27:16 UTC
  • mto: (8.12.2 add-etag)
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: michi.henning@canonical.com-20160523022716-jpaudmuan8vxxgch
More fleshing out of the local client implementation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#pragma once
2
2
 
 
3
#include <unity/storage/common/visibility.h>
3
4
#include <unity/storage/qt/client/Item.h>
4
5
 
5
6
namespace unity
18
19
{
19
20
 
20
21
class FileImpl;
 
22
class FolderImpl;
21
23
 
22
24
}  // namespace internal
23
25
 
28
30
 
29
31
A file is a sequence of bytes.
30
32
*/
31
 
class File : public Item
 
33
class UNITY_STORAGE_EXPORT File : public Item
32
34
{
33
35
public:
34
36
    ~File();
37
39
    File(File&&);
38
40
    File& operator=(File&&);
39
41
 
40
 
    typedef std::unique_ptr<File> SPtr;
 
42
    typedef std::shared_ptr<File> SPtr;
41
43
 
42
44
    /**
43
45
    \brief Returns the size of the file in bytes.
59
61
private:
60
62
    File(internal::FileImpl*);
61
63
 
62
 
    friend class FileImpl;
 
64
    friend class internal::FileImpl;
 
65
    friend class internal::FolderImpl;
 
66
    friend class internal::ItemImpl;
63
67
};
64
68
 
65
69
}  // namespace client