IMPSengine/client/inc/impswatchcli.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2003 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 *     WV engine Push Handler interface.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef RIMPSWATCHCLI_H
       
    21 #define RIMPSWATCHCLI_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 #include "impsclient.h"
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 /**
       
    30 *  RImpsWatchClient API
       
    31 *  This class is used internally by the Push Handler 
       
    32 *  This class is a light weight version of the other classes.
       
    33 *  This API doesn't start the WV engine if it is not running,
       
    34 *  the incoming CIR is ingnored in that case.
       
    35 *  There are no observer methods since we don't need to inform the push handler
       
    36 *
       
    37 */
       
    38 
       
    39 class RImpsWatchClient : public RImpsEng
       
    40     {
       
    41     public:
       
    42 
       
    43         /**
       
    44         * C++ default constructor.
       
    45         */      
       
    46         IMPORT_C RImpsWatchClient();
       
    47 
       
    48     public:
       
    49 
       
    50         /**
       
    51         * Connects to the WV server
       
    52         * @return KErrNone if connections was successfull
       
    53         */
       
    54         IMPORT_C TInt Register( );
       
    55 
       
    56         /**
       
    57         * Sends the CIR to the WV server
       
    58         * @param aCookie CIR in form of WVCI <version> <sessionid>
       
    59         */
       
    60 
       
    61         IMPORT_C void SendCIR( const TDesC8& aCookie );
       
    62 
       
    63         /**
       
    64         * Closes the session with the WV Server
       
    65         */
       
    66         IMPORT_C void UnRegister( );
       
    67 
       
    68         /**
       
    69         * Since RImpsWatchClient is inherited from RImpsClient we must implement
       
    70         * this pure virtual function.
       
    71         * The implementation of this function is empty
       
    72         * @return KErrNone 
       
    73         */
       
    74         TInt DoRegister( CImpsHandler2* /*aHandler*/ );
       
    75     };
       
    76 
       
    77 #endif 
       
    78 // End of File