convergedconnectionhandler/cchserver/inc/cchsubsession.h
branchRCL_3
changeset 22 d38647835c2e
parent 0 a4daefaec16c
equal deleted inserted replaced
21:f742655b05bf 22:d38647835c2e
       
     1 /*
       
     2 * Copyright (c) 2006-2007 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:  CCCHSubsession declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_CCHSUBSESSION_H
       
    20 #define C_CCHSUBSESSION_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32std.h>
       
    24 #include <e32base.h>
       
    25 
       
    26 // CONSTANTS
       
    27 // None
       
    28 
       
    29 // MACROS
       
    30 // None
       
    31 
       
    32 // DATA TYPES
       
    33 // None
       
    34 
       
    35 // FUNCTION PROTOTYPES
       
    36 // None
       
    37 
       
    38 // FORWARD DECLARATIONS
       
    39 class CCCHServerBase;
       
    40 class TCCHStorageEntry;
       
    41 class TCCHServiceSelection;
       
    42 // CLASS DECLARATION
       
    43 
       
    44 /**
       
    45  *  CCCHSubsession declaration
       
    46  *  Subsession for services.
       
    47  *  @lib cchserver.exe
       
    48  *  @since S60 3.2
       
    49  */
       
    50 NONSHARABLE_CLASS( CCCHSubsession ) : public CObject
       
    51     {
       
    52 
       
    53 public: // Constructors and destructor
       
    54 
       
    55     /**
       
    56     * Two-phased constructor.
       
    57     */
       
    58     static CCCHSubsession* NewL( CCCHServerBase& aServer );
       
    59 
       
    60     /**
       
    61      * Two-phased constructor.
       
    62      */
       
    63     static CCCHSubsession* NewLC( CCCHServerBase& aServer );
       
    64 
       
    65     /**
       
    66      * Destructor.
       
    67      */
       
    68     virtual ~CCCHSubsession();
       
    69 
       
    70 public: // New functions
       
    71 
       
    72     /**
       
    73      * Handles the messages.
       
    74      * @since S60 3.2
       
    75      * @param aMessage IPC message
       
    76      */
       
    77     void ServiceL( const RMessage2& aMessage );
       
    78     
       
    79     /**
       
    80      * Service event occured.
       
    81      * @since S60 3.2
       
    82      * @param aNewStatus Service which status has changed.
       
    83      */
       
    84     void ServiceEventOccured( TServiceStatus aNewStatus );
       
    85     
       
    86 private:
       
    87 
       
    88     /**
       
    89      * C++ default constructor.
       
    90      */
       
    91     CCCHSubsession( CCCHServerBase& aServer );
       
    92     
       
    93     /**
       
    94      * By default Symbian 2nd phase constructor is private.
       
    95      */
       
    96     void ConstructL();
       
    97     
       
    98     /**
       
    99      * Try complete.
       
   100      */
       
   101     void CompleteMessage();
       
   102     
       
   103 private: // data
       
   104 
       
   105     /**
       
   106      * Handle to server
       
   107      */
       
   108     CCCHServerBase& iServer;
       
   109     
       
   110     /**
       
   111      * Currently pending request
       
   112      */
       
   113     RMessage2* iMessage;
       
   114     
       
   115     /**
       
   116      * Register message;
       
   117      */
       
   118     RMessage2* iRegisterMessage; 
       
   119     
       
   120     /**
       
   121      * Type of service we are listening to
       
   122      */
       
   123     TServiceSelection iSubscribedService;
       
   124     
       
   125     /**
       
   126      * Event queue.
       
   127      */
       
   128     RArray<TServiceStatus> iEventQueue;
       
   129     
       
   130     /**
       
   131      * Do we queue events.
       
   132      */
       
   133     TBool iQueueEvents;
       
   134     };
       
   135 
       
   136 #endif // C_CCHSUBSESSION_H
       
   137 
       
   138 // End of file