timer_observer.cpp

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

ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:49:56 2011 by Doxygen 1.6.1