sysstatemgmt/ssmcustcmds/ssmdiskreserver/inc/ssmdiskreserver.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     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 * Declaration of CSsmDiskReserver class.
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef SSMDISKRESERVER_H
       
    20 #define SSMDISKRESERVER_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <e32property.h>
       
    24 #include <shareddataclient.h>
       
    25 
       
    26 /**
       
    27  *  Class implementing disk space reservation during boot.
       
    28  */
       
    29 NONSHARABLE_CLASS( CSsmDiskReserver ) : public CBase
       
    30     {
       
    31 public:
       
    32 
       
    33     /**
       
    34      * Two-phased constructor
       
    35      */
       
    36 	static CSsmDiskReserver* NewL();
       
    37 
       
    38     /**
       
    39      * Destructor
       
    40      */
       
    41     virtual ~CSsmDiskReserver();
       
    42 
       
    43     /**
       
    44     * Waits for startup to finish.
       
    45     */
       
    46     void WaitStartupFinished();
       
    47     
       
    48 private:
       
    49 
       
    50     /**
       
    51     * Second phase constructor.
       
    52     */
       
    53     void ConstructL();
       
    54 
       
    55 private: // data
       
    56 
       
    57     /**
       
    58     * Property used to listen startup finish.
       
    59     */
       
    60     RProperty iProperty;
       
    61 
       
    62     /**
       
    63     * Session to shared data server.
       
    64     */
       
    65     RSharedDataClient iSharedData;
       
    66     };
       
    67 
       
    68 #endif // SSMDISKRESERVER_H