taskswitcher/contextengine/hgfswserver/server/inc/hgfswsession.h
changeset 4 4d54b72983ae
parent 3 fb3763350a08
child 5 c743ef5928ba
equal deleted inserted replaced
3:fb3763350a08 4:4d54b72983ae
     1 /*
       
     2  * ===========================================================================
       
     3  *  Name        : hgfswsession.h
       
     4  *  Part of     : Huriganes / Fast Swap Server
       
     5  *  Description : session class for server
       
     6  *  Version     : %version: 4 %
       
     7  *
       
     8  *  Copyright © 2008 Nokia Corporation.
       
     9  *  This material, including documentation and any related 
       
    10  *  computer programs, is protected by copyright controlled by 
       
    11  *  Nokia Corporation. All rights are reserved. Copying, 
       
    12  *  including reproducing, storing, adapting or translating, any 
       
    13  *  or all of this material requires the prior written consent of 
       
    14  *  Nokia Corporation. This material also contains confidential 
       
    15  *  information which may not be disclosed to others without the 
       
    16  *  prior written consent of Nokia Corporation.
       
    17  * ===========================================================================
       
    18  */
       
    19 
       
    20 #ifndef __HGFSWSESSION_H
       
    21 #define __HGFSWSESSION_H
       
    22 
       
    23 #include "hgfswserver.h"
       
    24 #include "hgfswentry.h"
       
    25 
       
    26 /**
       
    27  * Session class.
       
    28  */
       
    29 class CHgFswSession : public CSession2
       
    30     {
       
    31 public:
       
    32     CHgFswSession();
       
    33     void CreateL();
       
    34     
       
    35     /**
       
    36      * Called from the server when fsw content has changed.
       
    37      */
       
    38     void FswDataChanged();
       
    39     
       
    40     /**
       
    41      * Returns true if there is a pending subscribe request to this session.
       
    42      */
       
    43     TBool IsListening();
       
    44 
       
    45 private:
       
    46     ~CHgFswSession();
       
    47     CHgFswServer& Server();
       
    48     void ServiceL( const RMessage2& aMessage );
       
    49     void ServiceError( const RMessage2& aMessage, TInt aError );
       
    50     void CompleteSubscribe( TInt aError );
       
    51 
       
    52     RArray<RMessage2> iSubscribeRequests; // non-completed EHgFswSubscribe messages
       
    53     };
       
    54 
       
    55 #endif