uiservicetab/vimpstcmdprocess/inc/cvimpstcmdsearch.h
changeset 15 81eeb8c83ce5
parent 0 5e5d6b214f4f
equal deleted inserted replaced
0:5e5d6b214f4f 15:81eeb8c83ce5
     1 /*
       
     2 * Copyright (c) 2008 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:  Search Command header
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CVIMPSTCMDSEARCH_H
       
    20 #define CVIMPSTCMDSEARCH_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 #include "mvimpstcmd.h"
       
    25 #include "tvimpstconsts.h"
       
    26 #include "tvimpstenums.h"
       
    27 
       
    28 
       
    29 // FORWARD DECLARATION
       
    30 class MVIMPSTEngine;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 /**
       
    34  * IM Login command object.
       
    35  * @lib vimpstcmdprocess.dll
       
    36  * @since 5.0
       
    37  */
       
    38 NONSHARABLE_CLASS(CVIMPSTCmdSearch) : public CBase,
       
    39                                   public MVIMPSTCmd
       
    40     {
       
    41     public: // Construction and destruction
       
    42 
       
    43         /**
       
    44          * Creates a new instance of this class.
       
    45          *
       
    46          * @param aCommandId        Command id.
       
    47          * @param aKeyDataArray, array of keys for search.
       
    48          * @param aEngine, reference to engine.
       
    49          * @return  A new instance of this class.
       
    50          */
       
    51         static CVIMPSTCmdSearch* NewL(
       
    52                 const TInt aCommandId ,
       
    53                 RArray<TVIMPSTSearchKeyData>& aKeyDataArray,
       
    54                 MVIMPSTEngine& aEngine);
       
    55 
       
    56         /**
       
    57          * Destructor.
       
    58          */
       
    59         ~CVIMPSTCmdSearch();
       
    60 
       
    61     public: // From mvimpstcmd
       
    62        /**
       
    63         * see mvimpstcmd
       
    64         */
       
    65         void ExecuteLD();        
       
    66        /**
       
    67         * see mvimpstcmd
       
    68         */
       
    69         void AddObserver(
       
    70                 MVIMPSTCmdObserver& aObserver );
       
    71        /**
       
    72         * see mvimpstcmd
       
    73         */
       
    74 		TInt CommandId() const;		
       
    75 	   /**
       
    76         * see mvimpstcmd
       
    77         */	
       
    78 		TInt Result() const;
       
    79 		
       
    80 	         
       
    81 
       
    82     private: // Implementation
       
    83     
       
    84        /**
       
    85         * symbian default constructor
       
    86         * @param aCommandId        Command id.
       
    87         * @param aKeyDataArray, array of keys for search.
       
    88         * @param aEngine, reference to engine.
       
    89         */
       
    90         CVIMPSTCmdSearch(
       
    91                 const TInt aCommandId, 
       
    92                 RArray<TVIMPSTSearchKeyData>& aKeyDataArray, 
       
    93                 MVIMPSTEngine& aEngine);
       
    94        /**
       
    95         * symbian second phase constructor
       
    96         */         
       
    97         void ConstructL();
       
    98         
       
    99         
       
   100     private: // Data
       
   101         
       
   102         //Command id
       
   103         const TInt iCommandId;  
       
   104         
       
   105          //own array of search ids and values
       
   106         RArray<TVIMPSTSearchKeyData>& iKeyDataArray;
       
   107              
       
   108         //observer - doesnt own
       
   109         MVIMPSTCmdObserver* iObserver;  
       
   110         
       
   111         //doesnt own - engine for this service
       
   112         MVIMPSTEngine& iEngine;
       
   113         
       
   114         //error code.
       
   115         TInt iError;
       
   116 
       
   117     };
       
   118 
       
   119 #endif // CVIMPSTCMDSEARCH_H
       
   120 
       
   121 // End of File