equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
36 DRMLOG( _L( "CProcWatcher::ConstructL ->" ) ); |
36 DRMLOG( _L( "CProcWatcher::ConstructL ->" ) ); |
37 } |
37 } |
38 |
38 |
39 CProcWatcher* CProcWatcher::NewL( MWatcherObserver& aObserver, const TDesC& aProcess, const TDesC& aFile ) |
39 CProcWatcher* CProcWatcher::NewL( MWatcherObserver& aObserver, const TDesC& aProcess, const TDesC& aFile ) |
40 { |
40 { |
41 CProcWatcher* self = new( ELeave ) CProcWatcher( aObserver); |
41 CProcWatcher* self = new( ELeave ) CProcWatcher( aObserver ); |
|
42 CleanupStack::PushL( self ); |
42 self->ConstructL( aProcess, aFile ); |
43 self->ConstructL( aProcess, aFile ); |
|
44 CleanupStack::Pop( self ); |
43 return self; |
45 return self; |
44 } |
46 } |
45 |
47 |
46 CProcWatcher::CProcWatcher( MWatcherObserver& aObserver ): |
48 CProcWatcher::CProcWatcher( MWatcherObserver& aObserver ): |
47 CActive( EPriorityStandard ), |
49 CActive( EPriorityStandard ), |