00001 // -*- c++ -*- 00002 00003 // generated code -- do not edit 00004 00005 #ifndef __TIMER_OBSERVER_H__ 00006 #define __TIMER_OBSERVER_H__ 00007 00008 #include <e32base.h> 00009 00010 /** A callback interface for CTimerAo. 00011 */ 00012 class MTimerObserver 00013 { 00014 public: 00015 00016 virtual void HandleTimerEvent(TInt aError) = 0; 00017 }; 00018 00019 /** A fairly generic, concrete CTimer subclass that delivers timer events via a callback interface. 00020 */ 00021 class CTimerAo : 00022 public CTimer 00023 { 00024 public: 00025 00026 static CTimerAo *NewLC(MTimerObserver &aInterface, TInt aPriority); 00027 00028 static CTimerAo *NewL(MTimerObserver &aInterface, TInt aPriority); 00029 00030 private: 00031 00032 CTimerAo(MTimerObserver &aInterface, TInt aPriority); 00033 00034 virtual void RunL(); 00035 00036 MTimerObserver &iInterface; 00037 }; 00038 00039 #endif // __TIMER_OBSERVER_H__ 00040 00041 /** 00042 Copyright 2008 Helsinki Institute for Information Technology (HIIT) 00043 and Tero Hasu <tero.hasu@hut.fi>. All rights reserved. 00044 00045 This license applies: 00046 00047 This program is free software; you can redistribute it and/or modify 00048 it under the terms of the GNU General Public License as published by 00049 the Free Software Foundation; either version 2 of the License, or 00050 (at your option) any later version. 00051 00052 This program is distributed in the hope that it will be useful, 00053 but WITHOUT ANY WARRANTY; without even the implied warranty of 00054 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00055 GNU General Public License for more details. 00056 00057 You should have received a copy of the GNU General Public License 00058 along with this program; if not, write to the Free Software 00059 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00060 00061 Alternatively, this license applies: 00062 00063 Permission is hereby granted, free of charge, to any person 00064 obtaining a copy of this software and associated documentation files 00065 (the "Software"), to deal in the Software without restriction, 00066 including without limitation the rights to use, copy, modify, merge, 00067 publish, distribute, sublicense, and/or sell copies of the Software, 00068 and to permit persons to whom the Software is furnished to do so, 00069 subject to the following conditions: 00070 00071 The above copyright notice and this permission notice shall be 00072 included in all copies or substantial portions of the Software. 00073 00074 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 00075 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00076 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 00077 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 00078 BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 00079 ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 00080 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 00081 SOFTWARE. 00082 */
ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:49:56 2011 by Doxygen 1.6.1