imagehandlingutilities/thumbnailmanager/thumbnailserver/inc/thumbnaildiskunmountobserver.h
changeset 0 2014ca87e772
equal deleted inserted replaced
-1:000000000000 0:2014ca87e772
       
     1 /*
       
     2 * Copyright (c) 2007 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:  Class to monitor when volumes are unmounted
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef THUMBNAILDISKUNMOUNTOBSERVER_H
       
    20 #define THUMBNAILDISKUNMOUNTOBSERVER_H
       
    21 
       
    22 #include "f32file.h"
       
    23 
       
    24 class CThumbnailServer;
       
    25 
       
    26 /**
       
    27  *  Class to monitor when volumes are unmounted
       
    28  *
       
    29  *  @since S60 v5.0
       
    30  */
       
    31 class CThumbnailDiskUnmountObserver: public CActive
       
    32     {
       
    33 public:
       
    34 
       
    35     /**
       
    36      * Two-phased constructor
       
    37      *
       
    38      * @since S60 v5.0
       
    39      * @return New CThumbnailDiskUnmountObserver object.
       
    40      */
       
    41     static CThumbnailDiskUnmountObserver* NewL( RFs& aFs, TInt aDrive, CThumbnailServer* aServer );
       
    42     /**
       
    43      * Destructor
       
    44      *
       
    45      * @since S60 v5.0
       
    46      */
       
    47     virtual ~CThumbnailDiskUnmountObserver();
       
    48     
       
    49     void StartNotify();
       
    50 
       
    51 private:
       
    52     void RunL();
       
    53     void DoCancel();
       
    54 
       
    55 
       
    56     /**
       
    57      * C++ default constructor
       
    58      *
       
    59      * @since S60 v5.0
       
    60      * @return New CThumbnailDiskUnmountObserver object.
       
    61      */
       
    62     CThumbnailDiskUnmountObserver( RFs& aFs, TInt aDrive, CThumbnailServer* aServer );
       
    63 
       
    64     /**
       
    65      * Symbian 2nd phase constructor can leave.
       
    66      *
       
    67      * @since S60 v5.0
       
    68      */
       
    69     void ConstructL();
       
    70 
       
    71 private:
       
    72     // Data
       
    73     RFs& iFs;
       
    74     TInt iDrive;
       
    75     CThumbnailServer* iServer;
       
    76 };
       
    77 
       
    78 #endif // THUMBNAILDISKUNMOUNTOBSERVER_H