svgtviewer/SvgtViewerPlugin/AppSrc/SVGTViewerAppApplication.cpp
branchRCL_3
changeset 13 e52958d06c29
parent 10 1882882c7f9c
child 14 20b99a6d6175
equal deleted inserted replaced
10:1882882c7f9c 13:e52958d06c29
     1 /*
       
     2 * Copyright (c) 2004,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:  Application Class for SVGT Viewer
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include <eikstart.h>
       
    22 #include "SVGTViewerAppApplication.h"
       
    23 #include "SVGTViewerAppDocument.h"
       
    24 
       
    25 // Constants
       
    26 
       
    27 // UID for the application; this should correspond to the uid defined in the mmp file
       
    28 const TUid KUidSVGTViewerAppApp = { 0x101F874A };
       
    29 
       
    30 // ============================ MEMBER FUNCTIONS ===============================
       
    31 
       
    32 // -----------------------------------------------------------------------------
       
    33 // CSVGTViewerAppApplication::AppDllUid
       
    34 // Reimplements CApaApplication::AppDllUid inorder to return SVGT Viewer App's
       
    35 // UID
       
    36 // Returns: TUid ; SVGT Viewer App UID
       
    37 // -----------------------------------------------------------------------------
       
    38 //
       
    39 TUid CSVGTViewerAppApplication::AppDllUid() const
       
    40     {
       
    41     // Return the UID for the SVGTViewerApp application
       
    42     return KUidSVGTViewerAppApp;
       
    43     }
       
    44 
       
    45 // -----------------------------------------------------------------------------
       
    46 // CSVGTViewerAppApplication::CreateDocumentL
       
    47 // Invokes the factory function for the Document Class. Called by the
       
    48 // framework.
       
    49 // Returns: CApaDocument* ; Pointer to the created Document Class
       
    50 // -----------------------------------------------------------------------------
       
    51 //
       
    52 CApaDocument* CSVGTViewerAppApplication::CreateDocumentL()
       
    53     {
       
    54     // Create an SVGTViewerApp document, and return a pointer to it
       
    55     return ( static_cast< CApaDocument* >(
       
    56         CSVGTViewerAppDocument::NewL( *this ) ) );
       
    57     }
       
    58 
       
    59 // End of File