ULAPI  8.0
ulworker.h
1 
7 #ifndef ULWORKER_H
8 #define ULWORKER_H
9 
10 #include "ulerror.h"
11 #include "ulcontainers.h"
12 #include "ulservicedescriptor.h"
13 
51 class ULWorker
52 {
53 public:
54  ULWorker();
55  virtual ~ULWorker() {}
56 
62  virtual bool isServiceAvailable(const ULServiceDescriptor& service) = 0;
63 
68  virtual void getAvailableServices(ULList<ULServiceDescriptor>& serviceList) = 0;
69 
74  virtual void setCancelOperation(bool shouldCancel);
75 
79  virtual bool shouldCancelOperation() const;
80 
81 private:
82  bool cancelOperation;
83 };
84 
85 #endif
86