SDK  2.1.4 [async]
CloudBackend Software Development Kit - SDK API for C++
PublishDelegate.h
1 #ifndef CBE__delegate__PublishDelegate_h__
2 #define CBE__delegate__PublishDelegate_h__
3 
4 #include "cbe/Types.h"
5 #include "cbe/util/Context.h"
6 #include "cbe/delegate/Error.h"
7 #include "cbe/util/ErrorInfo.h"
8 #include "cbe/util/Exception.h"
9 
10 namespace cbe {
11  namespace delegate {
12 class PublishSuccess;
21 public:
22  using Success = PublishSuccess;
27  virtual void onPublishSuccess(cbe::Items&& items) = 0;
28 
29  using Error = delegate::Error;
33  virtual void onPublishError(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::PublishException
54 #endif // #ifndef CBE_NO_SYNC
55 
56  virtual ~PublishDelegate();
57 }; // class PublishDelegate
58 
66 using PublishDelegatePtr = std::shared_ptr<PublishDelegate>;
67 
68  } // namespace delegate
69 } // namespace cbe
70 
71 #endif // #ifndef CBE__delegate__PublishDelegate_h__
Definition: Error.h:14
Definition: PublishDelegate.h:20
virtual void onPublishSuccess(cbe::Items &&items)=0
virtual void onPublishError(Error &&error, cbe::util::Context &&context)=0
Convenience type that bundles the parameter passed to method cbe::delegate::ShareDelegate::onShareSuc...
Definition: PublishSuccess.h:14
std::shared_ptr< PublishDelegate > PublishDelegatePtr
Definition: PublishDelegate.h:66
Root namespace for the CloudBackend SDK API.
Definition: Account.h:22
std::vector< cbe::Item > Items
Collection of items.
Definition: Types.h:401
Definition: PublishDelegate.h:38
Definition: Context.h:11
Definition: ErrorInfo.h:27
Definition: Exception.h:38