uiservicetab/vimpstcmdprocess/inc/cvimpstcmdfetchblockedlist.h
branchRCL_3
changeset 23 9a48e301e94b
parent 0 5e5d6b214f4f
equal deleted inserted replaced
22:3104fc151679 23:9a48e301e94b
       
     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:  Fetch the blocked list from server
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CVIMPSTCMDFETCHBLOCKEDLIST_H
       
    19 #define CVIMPSTCMDFETCHBLOCKEDLIST_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32base.h>
       
    23 #include "mvimpstcmd.h"
       
    24 
       
    25 
       
    26 // FORWARD DECLARATION
       
    27 class MVIMPSTEngine;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 /**
       
    31  * IM Login command object.
       
    32  *  @lib vimpstcmdprocess.dll
       
    33  *  @since 5.0
       
    34  */
       
    35 NONSHARABLE_CLASS(CVIMPSTCmdFetchBlockedContactList) : public CBase,
       
    36                                   					public MVIMPSTCmd
       
    37     {
       
    38     public: // Construction and destruction
       
    39 
       
    40         /**
       
    41          * Creates a new instance of this class.
       
    42          *
       
    43          * @param aCommandId        Command id.
       
    44          * @param aServiceID, service id.
       
    45          * @param aEngine, reference to engine.
       
    46          * @return  A new instance of this class.
       
    47          */
       
    48         static CVIMPSTCmdFetchBlockedContactList* NewL(
       
    49                 const TInt aCommandId , MVIMPSTEngine& aEngine);
       
    50 
       
    51         /**
       
    52          * Destructor.
       
    53          */
       
    54         ~CVIMPSTCmdFetchBlockedContactList();
       
    55 
       
    56     public: // From mvimpstcmd
       
    57        /**
       
    58         * See mvimpstcmd
       
    59         */
       
    60         void ExecuteLD();        
       
    61        /**
       
    62         * See mvimpstcmd
       
    63         */       
       
    64         void AddObserver(
       
    65                 MVIMPSTCmdObserver& aObserver );
       
    66        /**
       
    67         * See mvimpstcmd
       
    68         */                
       
    69 		TInt CommandId() const;
       
    70 				
       
    71 	   /**
       
    72         * See mvimpstcmd
       
    73         */	
       
    74 		TInt Result() const;  
       
    75 		
       
    76 	         
       
    77 
       
    78     private: // Implementation
       
    79        /**
       
    80         * symbian default constructor
       
    81         * @param aCommandId        Command id.
       
    82         * @param aServiceID, service id.
       
    83         * @param aEngine, reference to engine.
       
    84         */
       
    85         CVIMPSTCmdFetchBlockedContactList(
       
    86                 const TInt aCommandId, MVIMPSTEngine& aEngine);
       
    87         
       
    88        /**
       
    89         * second phase constructor
       
    90         */       
       
    91         void ConstructL();
       
    92         
       
    93         
       
    94     private: // Data
       
    95         //Command id
       
    96         const TInt iCommandId;         
       
    97         
       
    98         //Service Id
       
    99         TUint32 iServiceId;
       
   100         
       
   101         //observer - Doesnt own
       
   102         MVIMPSTCmdObserver* iObserver;   
       
   103         
       
   104         //Doesnt own - engine interface
       
   105         MVIMPSTEngine& iEngine;
       
   106 
       
   107     };
       
   108 
       
   109 #endif // CVIMPSTCMDFETCHBLOCKEDLIST_H
       
   110 
       
   111 // End of File