sysstatemgmt/ssmpolicyplugins/ssmnoncriticalswppolicy/inc/ssmnoncriticalswppolicy.h
branchRCL_3
changeset 10 66ecddbca914
equal deleted inserted replaced
9:21e939dd208a 10:66ecddbca914
       
     1 /*
       
     2 * Copyright (c) 2010 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: Declaration of CSsmNonCriticalSwpPolicy class.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef SSMNONCRITICALSWPPOLICY_H
       
    19 #define SSMNONCRITICALSWPPOLICY_H
       
    20 
       
    21 #include "ssmswppolicybase.h"
       
    22 
       
    23 /**
       
    24  *  Policy plugin for noncritical phase SWP.
       
    25  */
       
    26 NONSHARABLE_CLASS( CSsmNonCriticalSwpPolicy ) : public CSsmSwpPolicyBase
       
    27     {
       
    28 
       
    29 public:
       
    30 
       
    31     /**
       
    32      * Constructs a CSsmNonCriticalSwpPolicy object.
       
    33      *
       
    34      * @return The new object
       
    35      */
       
    36     IMPORT_C static MSsmSwpPolicy* NewL();
       
    37 
       
    38     /**
       
    39      * Destructor.
       
    40      */
       
    41     virtual ~CSsmNonCriticalSwpPolicy();
       
    42 
       
    43 private: // From CSsmPolicyBase
       
    44 
       
    45     void GetCommandListPathL( TDes& aCmdListPath );
       
    46 
       
    47 private: // From MSsmSwpPolicy
       
    48 
       
    49 	/**
       
    50 	 * @see MSsmSwpPolicy.
       
    51      */
       
    52     TResponse TransitionAllowed(
       
    53 	    const TSsmSwp& aSwp,
       
    54 	    const RMessagePtr2& aMessage );
       
    55 
       
    56 private:
       
    57 
       
    58     /**
       
    59     * First phase constructor.
       
    60     */
       
    61     CSsmNonCriticalSwpPolicy();
       
    62 
       
    63     };
       
    64 
       
    65 #endif // SSMNONCRITICALSWPPOLICY_H