SDK  2.1.4 [async]
CloudBackend Software Development Kit - SDK API for C++
cbe::ShareManager Class Reference

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
 

Detailed Description

Managing Shares.

This class represents a list of Shares.

Member Typedef Documentation

◆ ListSharesDelegatePtr

Constructor & Destructor Documentation

◆ ShareManager()

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

Member Function Documentation

◆ listAvailableShares()

void cbe::ShareManager::listAvailableShares ( ListSharesDelegatePtr  delegate)

Lists the shares exposed by other users to current user. This will give specific share information.

Parameters
delegatePointer to a delegate::ListSharesDelegate instance that is implemented by the user.

◆ listMyShares()

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()

Parameters
delegatePointer to a delegate::ListSharesDelegate instance that is implemented by the user.

◆ operator bool()

cbe::ShareManager::operator bool ( ) const
explicit

Checks if the current instance is real.

An "unreal" instance implies typically a failed event.

Relies on the Default constructor ShareManager(cbe::DefaultCtor)

Returns
true : is real
false : unreal; got nullptr; if current instance is unbound/undefined. I.e., if it is only default constructed.

The documentation for this class was generated from the following file: