syncmlfw/syncmlnotifier/appserver/SyncMLNotifierServerApplication.h
branchRCL_3
changeset 61 b183ec05bd8c
parent 59 13d7c31c74e0
child 62 19bba8228ff0
equal deleted inserted replaced
59:13d7c31c74e0 61:b183ec05bd8c
     1 /*
       
     2 * Copyright (c) 2005 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:  Declares SyncML notifiers server application class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef SYNCMLNOTIFIERSERVERAPPLICATION_H
       
    21 #define SYNCMLNOTIFIERSERVERAPPLICATION_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <AknNotiferAppServerApplication.h> 
       
    25 #include <AknNotifierAppServer.h>
       
    26 #include <eikstart.h>
       
    27 
       
    28 // CONSTANTS
       
    29 const TUid KSyncMLNotifierAppServerUid = { 0x102072bf };
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 *  Server application, in which the notifiers are executed.
       
    35 *
       
    36 *  @lib SyncMLNotifier
       
    37 *  @since Series 60 3.0
       
    38 */
       
    39 class CSyncMLNotifierServerApplication: public CAknNotifierAppServerApplication
       
    40     {
       
    41     public:  // Constructors and destructor
       
    42 
       
    43         /**
       
    44         * C++ default constructor.
       
    45         */
       
    46         CSyncMLNotifierServerApplication();
       
    47  
       
    48     public: // New functions
       
    49         
       
    50         /**
       
    51         * Returns the resource file name of the object. Returns
       
    52         * an empty string, since component has no resource file.
       
    53         * @since Series 60 3.0
       
    54         * @param None
       
    55         * @return Resource file name.
       
    56         */
       
    57         TFileName ResourceFileName() const { TBuf<1> buf; return buf; }
       
    58 
       
    59     public: // Functions from base classes
       
    60  
       
    61         /**
       
    62         * From CAknApplication
       
    63         * @since Series 60 3.0
       
    64         * @param aAppaServer 
       
    65         * @return None.
       
    66         */
       
    67         void NewAppServerL( CApaAppServer*& aAppServer );
       
    68  
       
    69         /**
       
    70         * From CAknApplication Creates the application server document
       
    71         * instance.
       
    72         * @since Series 60 3.0
       
    73         * @param None
       
    74         * @return Pointer to the created document instance.
       
    75         */
       
    76         CApaDocument* CreateDocumentL();
       
    77  
       
    78         /**
       
    79         * From CApaApplication Returns the application server uid.
       
    80         * @since Series 60 3.0
       
    81         * @param None
       
    82         * @return Application server uid.
       
    83         */
       
    84         TUid AppDllUid() const { return KSyncMLNotifierAppServerUid; } 
       
    85     };
       
    86 
       
    87 /**
       
    88 *  Document instance for notifier server application.
       
    89 *
       
    90 *  @lib SyncMLNotifier
       
    91 *  @since Series 60 3.0
       
    92 */
       
    93 class CSyncMLNotifierAppServerDocument: public CAknDocument
       
    94     {
       
    95     public:  // Constructors and destructor
       
    96 
       
    97         /**
       
    98         * C++ default constructor.
       
    99         */
       
   100         CSyncMLNotifierAppServerDocument( CEikApplication& aApp )
       
   101             : CAknDocument( aApp ) {};
       
   102         
       
   103     protected:  // Functions from base classes
       
   104  
       
   105         /**
       
   106         * From CAknDocument Creates the application server UI
       
   107         * instance.
       
   108         * @since Series 60 3.0
       
   109         * @param None
       
   110         * @return Pointer to the created UI instance.
       
   111         */
       
   112         CEikAppUi* CreateAppUiL();
       
   113     };
       
   114 
       
   115 /**
       
   116 *  Application UI instance of the notifier server application.
       
   117 *
       
   118 *  @lib SyncMLNotifier
       
   119 *  @since Series 60 3.0
       
   120 */
       
   121  class CSyncMLNotifierAppServerAppUi: public CAknNotifierAppServerAppUi
       
   122     {
       
   123     public:  // Constructors and destructor
       
   124 
       
   125         /**
       
   126         * C++ default constructor.
       
   127         */
       
   128         CSyncMLNotifierAppServerAppUi();
       
   129         
       
   130         /**
       
   131         * Destructor.
       
   132         */
       
   133         virtual ~CSyncMLNotifierAppServerAppUi();
       
   134  
       
   135         /**
       
   136         * Symbian 2nd phase constructor.
       
   137         */
       
   138         void ConstructL();
       
   139     };
       
   140 
       
   141 #endif      // SYNCMLNOTIFIERSERVERAPPLICATION_H
       
   142             
       
   143 // End of File