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