| OLD | NEW |
| 1 /** | 1 /** |
| 2 ******************************************************************************* | 2 ******************************************************************************* |
| 3 * Copyright (C) 2001-2011, International Business Machines Corporation and * | 3 * Copyright (C) 2001-2014, International Business Machines Corporation and * |
| 4 * others. All Rights Reserved. * | 4 * others. All Rights Reserved. * |
| 5 ******************************************************************************* | 5 ******************************************************************************* |
| 6 */ | 6 */ |
| 7 #ifndef ICUNOTIF_H | 7 #ifndef ICUNOTIF_H |
| 8 #define ICUNOTIF_H | 8 #define ICUNOTIF_H |
| 9 | 9 |
| 10 #include "unicode/utypes.h" | 10 #include "unicode/utypes.h" |
| 11 | 11 |
| 12 #if UCONFIG_NO_SERVICE | 12 #if UCONFIG_NO_SERVICE |
| 13 | 13 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 virtual UClassID getDynamicClassID() const; | 41 virtual UClassID getDynamicClassID() const; |
| 42 | 42 |
| 43 public: | 43 public: |
| 44 #ifdef SERVICE_DEBUG | 44 #ifdef SERVICE_DEBUG |
| 45 virtual UnicodeString& debug(UnicodeString& result) const { | 45 virtual UnicodeString& debug(UnicodeString& result) const { |
| 46 return debugClass(result); | 46 return debugClass(result); |
| 47 } | 47 } |
| 48 | 48 |
| 49 virtual UnicodeString& debugClass(UnicodeString& result) const { | 49 virtual UnicodeString& debugClass(UnicodeString& result) const { |
| 50 return result.append("Key"); | 50 return result.append((UnicodeString)"Key"); |
| 51 } | 51 } |
| 52 #endif | 52 #endif |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 /** | 55 /** |
| 56 * <p>Abstract implementation of a notification facility. Clients add | 56 * <p>Abstract implementation of a notification facility. Clients add |
| 57 * EventListeners with addListener and remove them with removeListener. | 57 * EventListeners with addListener and remove them with removeListener. |
| 58 * Notifiers call notifyChanged when they wish to notify listeners. | 58 * Notifiers call notifyChanged when they wish to notify listeners. |
| 59 * This queues the listener list on the notification thread, which | 59 * This queues the listener list on the notification thread, which |
| 60 * eventually dequeues the list and calls notifyListener on each | 60 * eventually dequeues the list and calls notifyListener on each |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 virtual void notifyListener(EventListener& l) const = 0; | 114 virtual void notifyListener(EventListener& l) const = 0; |
| 115 }; | 115 }; |
| 116 | 116 |
| 117 U_NAMESPACE_END | 117 U_NAMESPACE_END |
| 118 | 118 |
| 119 /* UCONFIG_NO_SERVICE */ | 119 /* UCONFIG_NO_SERVICE */ |
| 120 #endif | 120 #endif |
| 121 | 121 |
| 122 /* ICUNOTIF_H */ | 122 /* ICUNOTIF_H */ |
| 123 #endif | 123 #endif |
| OLD | NEW |