messagingappbase/ncnlist/inc/Ncn.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2004 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:   The header file for Ncn subsystem base class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef NCN_H
       
    21 #define NCN_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CNcnModelBase;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 *  The class acting as a server framework for the NCN subsystem.
       
    33 */
       
    34 class CNcn : public CPolicyServer
       
    35     {
       
    36     public: // Constructors and destructor
       
    37 
       
    38         /**
       
    39         * Two-phased constructor.
       
    40         */
       
    41         static void NewLC();
       
    42         
       
    43         ~CNcn();
       
    44         
       
    45     public: // New functions
       
    46 
       
    47 	    static TInt RunServer();
       
    48 	
       
    49     protected: // From CServer2
       
    50     
       
    51         CSession2* NewSessionL( const TVersion& aVersion,
       
    52                                 const RMessage2& aMessage ) const;
       
    53     
       
    54     protected: // New functions
       
    55     
       
    56 	    static void RunServerL();
       
    57 
       
    58     private: // Constructors and destructor
       
    59     
       
    60         void ConstructL();
       
    61 
       
    62         /**
       
    63         * C++ default constructor.
       
    64         */
       
    65         CNcn( TInt aPriority, const TPolicy& aPolicy );
       
    66 
       
    67     private: // Data
       
    68 
       
    69         // A pointer to CNcnModel instance. Owned.
       
    70         CNcnModelBase* iNcnModel;
       
    71     };
       
    72 
       
    73 #endif   // NCN_H
       
    74 
       
    75 // End of File