atext/server/inc/atextsrv.h
changeset 0 29b1cd4cb562
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     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:  ATEXT server
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef SERVER_IMPL_H
       
    20 #define SERVER_IMPL_H
       
    21 
       
    22 #include <e32svr.h>
       
    23 
       
    24 class CATExtSession;
       
    25 
       
    26 /**
       
    27  *  CATExtSrv server core class
       
    28  *
       
    29  *  @since S60 v5.0
       
    30  */
       
    31 NONSHARABLE_CLASS( CATExtSrv ) : public CPolicyServer
       
    32     {
       
    33 
       
    34 public:
       
    35 
       
    36     /**
       
    37      * Two-phased constructor.
       
    38      */
       
    39     static CATExtSrv* NewLC();
       
    40 
       
    41     /**
       
    42      * Destructor.
       
    43      */
       
    44     ~CATExtSrv();
       
    45 
       
    46     /**
       
    47      * Called when a plugin closes
       
    48      *
       
    49      * @since S60 v5.0
       
    50      * @param aSession Session
       
    51      * @return None.
       
    52      */
       
    53     void ClientClosed( CATExtSession& aSession );
       
    54 
       
    55 private:
       
    56 
       
    57     /**
       
    58      * Creates a new session to client
       
    59      *
       
    60      * @since S60 v5.0
       
    61      * @param aVersion The version
       
    62      * @param aMessage Not used
       
    63      * return The new created session
       
    64      */
       
    65     CSession2* NewSessionL( const TVersion& aVersion,
       
    66                             const RMessage2& aMessage ) const;
       
    67 
       
    68     /**
       
    69      * Constructor
       
    70      *
       
    71      * @since S60 v5.0
       
    72      * @param aPriority This AO's priority
       
    73      */
       
    74     CATExtSrv( TInt aPriority );
       
    75 
       
    76     /**
       
    77      * Two-Phase constructor
       
    78      *
       
    79      * @return None
       
    80      */
       
    81     void ConstructL();
       
    82 
       
    83 private:  // data
       
    84 
       
    85     /**
       
    86      * Array of sessions
       
    87      */
       
    88     RPointerArray<CATExtSession> iSessions;
       
    89 
       
    90     };
       
    91 
       
    92 #endif  // SERVER_IMPL_H