SDK  2.1.4 [async]
CloudBackend Software Development Kit - SDK API for C++
All Classes Namespaces Functions Variables Typedefs Enumerations Friends Pages
UnShareDelegate.h
1 #ifndef CBE__delegate__UnShareDelegate_h__
2 #define CBE__delegate__UnShareDelegate_h__
3 
4 #include "cbe/Types.h"
5 #include "cbe/delegate/Error.h"
6 #include "cbe/util/Context.h"
7 #include "cbe/util/ErrorInfo.h"
8 #include "cbe/util/Exception.h"
9 
10 namespace cbe {
11  namespace delegate {
12 class UnShareSuccess;
21 public:
22  using Success = UnShareSuccess;
27  virtual void onUnShareSuccess(std::string&& message) = 0;
28 
29  using Error = delegate::Error;
33  virtual void onUnShareError(Error&& error, cbe::util::Context&& context) = 0;
34 
39  using Base::Base; // Inherit base class' constructors
40  }; // struct ErrorInfo
41 
42 #ifndef CBE_NO_SYNC
51  struct Exception : cbe::util::ExceptionImpl<ErrorInfo> {
52  using Base::Base; // Inherit base class' constructors
53  }; // class struct CloudBackend::UnShareException
54 #endif // #ifndef CBE_NO_SYNC
55 
56  virtual ~UnShareDelegate();
57 }; // class UnShareDelegate
58 
66 using UnShareDelegatePtr = std::shared_ptr<UnShareDelegate>;
67 
74  bool ok = false;
75 public:
76  std::string message{};
77 
80  UnShareSuccess(std::string&& message);
86  explicit operator bool() const;
87 }; // class UnShareSuccess
88  } // namespace delegate
89 } // namespace cbe
90 #endif
Definition: Error.h:14
Definition: UnShareDelegate.h:20
virtual void onUnShareSuccess(std::string &&message)=0
virtual void onUnShareError(Error &&error, cbe::util::Context &&context)=0
Convenience type that bundles the parameter passed to method cbe::delegate::ShareDelegate::onShareSuc...
Definition: UnShareDelegate.h:73
std::shared_ptr< UnShareDelegate > UnShareDelegatePtr
Definition: UnShareDelegate.h:66
Root namespace for the CloudBackend SDK API.
Definition: Account.h:22
DefaultCtor
Default constructor marker.
Definition: Types.h:204
Definition: UnShareDelegate.h:38
Definition: Context.h:11
Definition: ErrorInfo.h:27
Definition: Exception.h:38