layouts/cdl/CdlServer/inc/CdlDllWatcher.h
changeset 0 05e9090e2422
equal deleted inserted replaced
-1:000000000000 0:05e9090e2422
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 #ifndef CDLDLLWATCHER_H
       
    18 #define CDLDLLWATCHER_H
       
    19 
       
    20 #include <e32base.h>
       
    21 #include <f32file.h>
       
    22 #include "CdlServEng.h"
       
    23 
       
    24 /**
       
    25 * Mixin interface for objects that want to observe changes in the set of available CDL DLLs.
       
    26 */
       
    27 class MCdlDllsObserver
       
    28 	{
       
    29 public:
       
    30 	virtual void McdoPrepareForChangesL() = 0;
       
    31 	virtual void McdoFileAddedL(const TDesC& aFile) = 0;
       
    32 	virtual void McdoFileRemovedL(const TDesC& aFile) = 0;
       
    33 	virtual void McdoChangesCompleteL() = 0;
       
    34 	};
       
    35 
       
    36 class CCdlDllsWatcherBase : public CActive
       
    37 	{
       
    38 public:
       
    39 	static void NewL(CCdlDllsWatcherBase*& iWatcher, RFs& aFs, MCdlDllsObserver* aObserver);
       
    40 	CCdlDllsWatcherBase(RFs& aFs);
       
    41 	CCdlRefCollection* FileContentsLC(const TDesC& aFileName);
       
    42 	virtual TInt IsPluginInRom(const TDesC& aFileName, TBool& aIsInRom) const = 0;
       
    43 	virtual TInt PluginDrive(const TDesC& aFileName, TDriveUnit& aDrive) const = 0;
       
    44 protected:
       
    45 	RFs& iFs;
       
    46 	};
       
    47 
       
    48 #endif