OLD | NEW |
1 #ifndef ADBLOCKPLUS_ERROR_CALLBACK_H | 1 #ifndef ADBLOCK_PLUS_ERROR_CALLBACK_H |
2 #define ADBLOCKPLUS_ERROR_CALLBACK_H | 2 #define ADBLOCK_PLUS_ERROR_CALLBACK_H |
3 | 3 |
4 #include <string> | 4 #include <string> |
5 | 5 |
6 #include "tr1_memory.h" | 6 #include "tr1_memory.h" |
7 | 7 |
8 namespace AdblockPlus | 8 namespace AdblockPlus |
9 { | 9 { |
10 class ErrorCallback | 10 class ErrorCallback |
11 { | 11 { |
12 public: | 12 public: |
13 virtual ~ErrorCallback(); | 13 virtual ~ErrorCallback(); |
14 virtual void operator()(const std::string& message) = 0; | 14 virtual void operator()(const std::string& message) = 0; |
15 }; | 15 }; |
16 | 16 |
17 typedef std::tr1::shared_ptr<ErrorCallback> ErrorCallbackPtr; | 17 typedef std::tr1::shared_ptr<ErrorCallback> ErrorCallbackPtr; |
18 } | 18 } |
19 | 19 |
20 #endif | 20 #endif |
OLD | NEW |