SDK  2.1.4 [async]
CloudBackend Software Development Kit - SDK API for C++
ShareManager.h
1 /*
2  Copyright © CloudBackend AB 2020-2023.
3  */
4 
5 #ifndef INCLUDE_CBE_SHARE_MANAGER_H_
6 #define INCLUDE_CBE_SHARE_MANAGER_H_
7 
8 #include "cbe/delegate/Error.h"
9 #include "cbe/util/Context.h"
10 #include "cbe/util/Exception.h"
11 #include "cbe/util/ErrorInfo.h"
12 #include "cbe/util/Optional.h"
13 
14 #include "cbe/delegate/ListSharesDelegate.h"
15 
16 namespace CBI {
17 class ShareManager;
18 } // namespace CBI
19 
20 
21 namespace cbe {
27 class ShareManager {
28 public:
50 #ifndef CBE_NO_SYNC
54  using ListSharesException = delegate::ListSharesDelegate::Exception;
69 
76  using ListSharesError = delegate::ListSharesDelegate::ErrorInfo;
98  ListSharesError& error);
99 #endif // #ifndef CBE_NO_SYNC
100  // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
101 
115 #ifndef CBE_NO_SYNC
119  using ListMySharesException = delegate::ListSharesDelegate::Exception;
134 
141  using ListMySharesError = delegate::ListSharesDelegate::ErrorInfo;
163  ListSharesError& error);
164 #endif // #ifndef CBE_NO_SYNC
165  // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
166 
176  ~ShareManager();
177 
190  explicit operator bool() const;
191 private:
192  struct Impl;
193  std::shared_ptr<Impl> pImpl{};
194 
195  friend class CloudBackend;
196  ShareManager(CBI::ShareManager& cbiPeer);
197  CBI::ShareManager& getCbiPeer() const;
198 }; // class ShareManager
199 
200 } // namespace cbe
201 
202 #endif // INCLUDE_CBE_SHARE_MANAGER_H_
The session that holds the connection with the cloud.
Definition: CloudBackend.h:47
resultset of data retrieved.
Definition: QueryResult.h:51
Managing Shares.
Definition: ShareManager.h:27
void listAvailableShares(ListSharesDelegatePtr delegate)
Lists the shares exposed by other users to current user. This will give specific share information.
delegate::ListSharesDelegatePtr ListSharesDelegatePtr
Definition: ShareManager.h:36
ShareManager(cbe::DefaultCtor)
Default constructor.
void listMyShares(ListSharesDelegatePtr delegate)
Lists the shares exposed by current user. This will give specific share information.
Class template Optional manages an optional contained value - i.e., a value that is either present or...
Definition: Optional.h:20
std::shared_ptr< ListSharesDelegate > ListSharesDelegatePtr
Definition: ListSharesDelegate.h:69
Root namespace for the CloudBackend SDK API.
Definition: Account.h:22
DefaultCtor
Default constructor marker.
Definition: Types.h:204
Definition: ListSharesDelegate.h:42