defaultapplicationsettings/server/inc/das_app.h
changeset 0 254040eb3b7d
equal deleted inserted replaced
-1:000000000000 0:254040eb3b7d
       
     1 /*
       
     2 * Copyright (c) 2005-2006 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:  This class implements the application.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_DEFAULTAPPAPPLICATION_H
       
    21 #define C_DEFAULTAPPAPPLICATION_H
       
    22 
       
    23 #include <aknapp.h>
       
    24 
       
    25 class CDefaultAppDocument;
       
    26 class CDefaultAppServer;
       
    27 
       
    28 /** UID for the application; this should correspond to the uid defined in the mmp file */
       
    29 const TUid KUidDefaultAppServer = { 0x10281B9C };
       
    30 
       
    31 /**
       
    32  *  This class implements the application.
       
    33  *
       
    34  *  @since Series 60 v5.0
       
    35  */
       
    36 class CDefaultAppApplication : public CAknApplication
       
    37     {
       
    38 private: // Functions from base classes
       
    39 
       
    40     /**
       
    41      * From CApaApplication.
       
    42      * Returns application's UID (KUidDefaultAppServer).
       
    43      *
       
    44      * @since S60 v5.0
       
    45      * @return The value of KUidDefaultAppServer.
       
    46      */
       
    47     TUid AppDllUid() const;
       
    48 
       
    49     /**
       
    50      * From CApaApplication.
       
    51      * Creates CDefaultAppDocument document object.
       
    52      *
       
    53      * @since S60 v5.0
       
    54      * @return A pointer to the created document object.
       
    55      */
       
    56     CApaDocument* CreateDocumentL();
       
    57        
       
    58     /**
       
    59      * From CApaApplication.
       
    60      * Creates a new server object (CDefaultAppServer).
       
    61      *
       
    62      * @since S60 v5.0
       
    63      * @param aAppServer pointer to the newly created server object
       
    64      */
       
    65     void NewAppServerL(CApaAppServer*& aAppServer);
       
    66     
       
    67 public:
       
    68     /**
       
    69      * C++ default constructor.
       
    70      */
       
    71     CDefaultAppApplication(void);
       
    72     
       
    73 public: //data
       
    74     /**
       
    75      * Pointer to the documet class
       
    76      * Not owned.
       
    77      */
       
    78     CDefaultAppDocument* iDocument; //not owned
       
    79     
       
    80     /**
       
    81      * Pointer to the server class
       
    82      * Not owned.
       
    83      */
       
    84     CDefaultAppServer* iServer;     //not owned
       
    85     };
       
    86 
       
    87 #endif      // C_DEFAULTAPPAPPLICATION_H
       
    88 
       
    89 // End of File