All Classes Functions Variables Typedefs Friends Pages
IHandler.h
1 //------------------------------------------------------------------------------
2 //
3 // Copyright (c) 2012 Glympse Inc. All rights reserved.
4 //
5 //------------------------------------------------------------------------------
6 
7 #ifndef IHANDLER_H__GLYMPSE__
8 #define IHANDLER_H__GLYMPSE__
9 
10 namespace Glympse
11 {
12 
17 /*O*public**/ struct IHandler : public ICommon
18 {
19  public: virtual void post(const GRunnable& task) = 0;
20 
21  public: virtual void postDelayed(const GRunnable& task, int64 delayMillis) = 0;
22 
23  public: virtual void cancel(const GRunnable& task) = 0;
24 
25  public: virtual bool isMainThread() = 0;
26 };
27 
28 /*C*/typedef O< IHandler > GHandler;
29 
30 }
31 
32 #endif // !IHANDLER_H__GLYMPSE__