omadrm/drmengine/utils/src/dirwatcher.cpp
changeset 84 b09186059647
parent 0 95b198f216e5
equal deleted inserted replaced
82:a117e284a2c6 84:b09186059647
     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".
    39     }
    39     }
    40 
    40 
    41 CDirWatcher* CDirWatcher::NewL( MWatcherObserver& aObserver, RFs& aFs, const TDesC& aDir )
    41 CDirWatcher* CDirWatcher::NewL( MWatcherObserver& aObserver, RFs& aFs, const TDesC& aDir )
    42     {
    42     {
    43     CDirWatcher* self = new( ELeave ) CDirWatcher( aObserver, aFs );
    43     CDirWatcher* self = new( ELeave ) CDirWatcher( aObserver, aFs );
       
    44     CleanupStack::PushL( self );
    44     self->ConstructL( aDir );
    45     self->ConstructL( aDir );
       
    46     CleanupStack::Pop( self );
    45     return self;
    47     return self;
    46     }
    48     }
    47 
    49 
    48 CDirWatcher::CDirWatcher( MWatcherObserver& aObserver, RFs& aFs ):
    50 CDirWatcher::CDirWatcher( MWatcherObserver& aObserver, RFs& aFs ):
    49     CActive( EPriorityStandard ),
    51     CActive( EPriorityStandard ),