sdkcreationmw/sdkexamples/cppexamples/S60Ex/TouchEx/StylusPopupMenuEx/src/styluspopupmenuexapp.cpp
changeset 0 b26acd06ea60
child 1 ac50fd48361b
equal deleted inserted replaced
-1:000000000000 0:b26acd06ea60
       
     1 /*
       
     2 * Copyright (c) 2007 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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include "styluspopupmenuexapp.h"
       
    21 #include "styluspopupmenuexdoc.h"
       
    22 
       
    23 
       
    24 // ============================ MEMBER FUNCTIONS ===============================
       
    25 
       
    26 // UID for the application;
       
    27 // this should correspond to the uid defined in the mmp file
       
    28 static const TUid KUidStylusPopupMenuExApp = {0xA0000284};
       
    29 
       
    30 // -----------------------------------------------------------------------------
       
    31 // CStylusPopupMenuExApp::CreateDocumentL()
       
    32 // Creates CApaDocument object
       
    33 // -----------------------------------------------------------------------------
       
    34 //
       
    35 CApaDocument* CStylusPopupMenuExApp::CreateDocumentL()
       
    36     {  
       
    37     // Create an StylusPopupMenuEx document, and return a pointer to it
       
    38     CApaDocument* document = CStylusPopupMenuExDoc::NewL( *this );
       
    39     return document;
       
    40     }
       
    41 
       
    42 // -----------------------------------------------------------------------------
       
    43 // CStylusPopupMenuExApp::AppDllUid()
       
    44 // Returns application UID
       
    45 // -----------------------------------------------------------------------------
       
    46 //
       
    47 TUid CStylusPopupMenuExApp::AppDllUid() const
       
    48     {
       
    49     // Return the UID for the StylusPopupMenuEx application
       
    50     return KUidStylusPopupMenuExApp;
       
    51     }
       
    52