sysstatemgmt/ssmpolicyplugins/ssmswppolicybase/inc/ssmswppolicybase.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: Declaration of CSsmSwpPolicyBase class.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef C_SSMSWPPOLICYBASE_H
       
    19 #define C_SSMSWPPOLICYBASE_H
       
    20 
       
    21 #include <ssm/ssmswppolicy.h>
       
    22 
       
    23 #include "ssmpolicybase.h"
       
    24 
       
    25 /**
       
    26 *  Base class for SSM SWP policy plugins
       
    27 *
       
    28 */
       
    29 class CSsmSwpPolicyBase : public CSsmPolicyBase, public MSsmSwpPolicy
       
    30     {
       
    31 
       
    32 public:
       
    33 
       
    34     /**
       
    35     * First phase constructor.
       
    36     */
       
    37     IMPORT_C CSsmSwpPolicyBase();
       
    38 
       
    39     /**
       
    40     * Destructor.
       
    41     */
       
    42     IMPORT_C virtual ~CSsmSwpPolicyBase();
       
    43 
       
    44 protected: // From MSsmSwpPolicy
       
    45 
       
    46 	/**
       
    47 	 * @see MSsmSwpPolicy.
       
    48      */
       
    49     IMPORT_C virtual void Initialize( TRequestStatus& aStatus );
       
    50 
       
    51 	/**
       
    52 	 * @see MSsmSwpPolicy.
       
    53      */
       
    54     IMPORT_C virtual void InitializeCancel();
       
    55 
       
    56 	/**
       
    57 	 * @see MSsmSwpPolicy.
       
    58      */
       
    59     IMPORT_C virtual void PrepareCommandList(
       
    60         const TSsmSwp& aSwp,
       
    61         TRequestStatus& aStatus );
       
    62 
       
    63 	/**
       
    64 	 * @see MSsmSwpPolicy.
       
    65      */
       
    66     IMPORT_C virtual void PrepareCommandListCancel();
       
    67 
       
    68 	/**
       
    69 	 * @see MSsmSwpPolicy.
       
    70      */
       
    71     IMPORT_C virtual CSsmCommandList* CommandList();
       
    72 
       
    73 	/**
       
    74 	 * @see MSsmSwpPolicy.
       
    75      */
       
    76 	IMPORT_C virtual void HandleCleReturnValue(
       
    77 	    const TSsmSwp& aSwp,
       
    78 	    TInt aError,
       
    79 	    TInt aSeverity,
       
    80 	    TRequestStatus& aStatus );
       
    81 
       
    82 	/**
       
    83 	 * @see MSsmSwpPolicy.
       
    84      */
       
    85 	IMPORT_C virtual void HandleCleReturnValueCancel();
       
    86 
       
    87 	/**
       
    88 	 * @see MSsmSwpPolicy.
       
    89      */
       
    90     IMPORT_C virtual void Release();
       
    91 
       
    92     };
       
    93 
       
    94 #endif // C_SSMSWPPOLICYBASE_H