![]() |
SDK
2.1.4 [async]
CloudBackend Software Development Kit - SDK API for C++
|
Managing Shares. More...
#include <ShareManager.h>
Public Types | |
using | ListSharesDelegatePtr = delegate::ListSharesDelegatePtr |
Public Member Functions | |
void | listAvailableShares (ListSharesDelegatePtr delegate) |
Lists the shares exposed by other users to current user. This will give specific share information. More... | |
void | listMyShares (ListSharesDelegatePtr delegate) |
Lists the shares exposed by current user. This will give specific share information. More... | |
ShareManager (cbe::DefaultCtor) | |
Default constructor. More... | |
operator bool () const | |
Checks if the current instance is real. More... | |
Friends | |
class | CloudBackend |
Managing Shares.
This class represents a list of Shares.
Pointer to ListSharesDelegate that is passed into:
cbe::ShareManager::ShareManager | ( | cbe::DefaultCtor | ) |
Default constructor.
Pointer to cbe::delegate::ListSharesDelegate that is passed into asynchronous version of method listMyShares()
Construct a new object with the DefaultCtor
to enable the operator bool() test
void cbe::ShareManager::listAvailableShares | ( | ListSharesDelegatePtr | delegate | ) |
Lists the shares exposed by other users to current user. This will give specific share information.
delegate | Pointer to a delegate::ListSharesDelegate instance that is implemented by the user. |
void cbe::ShareManager::listMyShares | ( | ListSharesDelegatePtr | delegate | ) |
Lists the shares exposed by current user. This will give specific share information.
Pointer to cbe::delegate::ListSharesDelegate that is passed into asynchronous version of method listAvailableShares()
delegate | Pointer to a delegate::ListSharesDelegate instance that is implemented by the user. |
|
explicit |
Checks if the current instance is real.
An "unreal" instance implies typically a failed event.
Relies on the Default
constructor
ShareManager(cbe::DefaultCtor)
true
: is real false
: unreal; got nullptr; if current instance is unbound/undefined. I.e., if it is only default constructed.