 |
C++
1.4.6
CloudBackend Software Development Kit - SDK API for C++
|
5 #ifndef INCLUDE_CBE_OBJECT_H_
6 #define INCLUDE_CBE_OBJECT_H_
11 #include "CBE/Stream.h"
12 #include "CBE/Types.h"
13 #include "CBE/Protocols/TransferEventProtocol.h"
27 virtual void move(CBE::container_id_t destinationContainerId, CBE::ItemDelegatePtr delegate);
36 virtual void rename(
const std::string &
name, CBE::ItemDelegatePtr delegate);
43 virtual void remove(CBE::ItemDelegatePtr delegate);
50 virtual void download(
const std::string &
path, CBE::TransferDownloadDelegatePtr delegate);
59 virtual void download(CBE::TransferDownloadDelegatePtr delegate);
74 virtual void updateKeyValues(CBE::ItemDelegatePtr delegate, std::map<std::string, std::pair<std::string, bool>> metadata = metadata_type());
80 virtual void getStreams(CBE::ItemDelegatePtr delegate);
85 virtual std::vector<CBE::Stream>
streams()
const;
95 virtual uint64_t
length()
const;
105 virtual std::map<std::string, std::pair<std::string, bool>>
keyValues();
115 virtual void setACL(std::map<CBE::user_id_t, CBE::permission_status_t> ACL, CBE::ShareDelegatePtr delegate);
122 virtual void getACL(CBE::ShareDelegatePtr delegate);
134 virtual void share(user_id_t toUserGroup, std::string
description, CBE::ShareDelegatePtr delegate);
142 virtual void unShare(uint64_t shareId, CBE::ShareDelegatePtr delegate);
152 #endif // INCLUDE_CBE_OBJECT_H_
virtual void move(CBE::container_id_t destinationContainerId, CBE::ItemDelegatePtr delegate)
virtual void share(user_id_t toUserGroup, std::string description, CBE::ShareDelegatePtr delegate)
virtual void download(const std::string &path, CBE::TransferDownloadDelegatePtr delegate)
virtual std::string path() const
Returns the path if it is available.
virtual CBE::object_t getObjectType() const
virtual std::map< std::string, std::pair< std::string, bool > > keyValues()
virtual void getACL(CBE::ShareDelegatePtr delegate)
virtual void remove(CBE::ItemDelegatePtr delegate)
virtual void rename(const std::string &name, CBE::ItemDelegatePtr delegate)
virtual void getStreams(CBE::ItemDelegatePtr delegate)
virtual void setACL(std::map< CBE::user_id_t, CBE::permission_status_t > ACL, CBE::ShareDelegatePtr delegate)
virtual std::string name() const
Returns the name (title) of the item.
virtual void unShare(uint64_t shareId, CBE::ShareDelegatePtr delegate)
virtual std::string getMimeType() const
virtual std::string description() const
Get a description of the item if it is available.
virtual uint64_t length() const
virtual void updateKeyValues(CBE::ItemDelegatePtr delegate, std::map< std::string, std::pair< std::string, bool >> metadata=metadata_type())
virtual void downloadStream(const std::string &path, CBE::Stream stream, CBE::TransferDownloadDelegatePtr delegate)
virtual std::vector< CBE::Stream > streams() const