idlehomescreen/nativeuicontroller/src/application.cpp
changeset 0 f72a12da539e
equal deleted inserted replaced
-1:000000000000 0:f72a12da539e
       
     1 /*
       
     2 * Copyright (c) 2007-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 <bautils.h>
       
    20 #include <aisystemuids.hrh>
       
    21 #include "application.h"
       
    22 #include "document.h"
       
    23 #include <data_caging_path_literals.hrh>
       
    24 
       
    25 using namespace AiNativeUiController;
       
    26 
       
    27 _LIT( KResourceDrive, "z:" );
       
    28 _LIT( KAiNativeUiResourceFile, "AiNativeUi.rsc" );
       
    29 
       
    30 CApplication::CApplication(CNativeUiController* aUiCtl)
       
    31     : iUiCtl(aUiCtl)
       
    32     {
       
    33     }
       
    34 
       
    35 CApplication* CApplication::New(CNativeUiController* aUiCtl)
       
    36     {
       
    37     CApplication* self = NULL;
       
    38     
       
    39   	self = new CApplication(aUiCtl);
       
    40 
       
    41     return self;
       
    42     }
       
    43 
       
    44 CApplication::~CApplication()
       
    45     {
       
    46     }
       
    47 
       
    48 CApaDocument* CApplication::CreateDocumentL()
       
    49     {
       
    50     return CDocument::NewL(*this, iUiCtl);
       
    51     }
       
    52 
       
    53 TUid CApplication::AppDllUid() const
       
    54     {
       
    55     return  TUid::Uid(AI_UID3_AIFW_EXE);
       
    56     }
       
    57 
       
    58 TFileName CApplication::ResourceFileName() const
       
    59     {
       
    60     TFileName resFile;
       
    61     resFile.Append( KResourceDrive );
       
    62     resFile.Append( KDC_APP_RESOURCE_DIR );
       
    63     resFile.Append( KAiNativeUiResourceFile );
       
    64     BaflUtils::NearestLanguageFile( CCoeEnv::Static()->FsSession(), resFile );
       
    65     
       
    66     return resFile;
       
    67     }
       
    68 
       
    69 // End of File.