videditor/SimpleCutVideo/src/VeiSimpleCutVideoApp.cpp
changeset 0 951a5db380a0
equal deleted inserted replaced
-1:000000000000 0:951a5db380a0
       
     1 /*
       
     2 * Copyright (c) 2010 Ixonos Plc.
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the "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 * Ixonos Plc
       
    14 *
       
    15 * Description: 
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 // INCLUDE FILES
       
    23 #include <eikstart.h>
       
    24 // User includes
       
    25 #include "VeiSimpleCutVideoApp.h"
       
    26 #include "VeiSimpleCutVideoDocument.h"
       
    27 #include "VideoEditorCommon.h"  // Application UID
       
    28 
       
    29 // ================= MEMBER FUNCTIONS =======================
       
    30 
       
    31 // ================= OTHER EXPORTED FUNCTIONS ==============
       
    32 //
       
    33 // ---------------------------------------------------------
       
    34 // NewApplication() 
       
    35 // Constructs CVeiApp
       
    36 // Returns: created application object
       
    37 // ---------------------------------------------------------
       
    38 //
       
    39 EXPORT_C CApaApplication* NewApplication()
       
    40     {
       
    41     return new CVeiSimpleCutVideoApp;
       
    42     }
       
    43 
       
    44 // ---------------------------------------------------------
       
    45 // E32Main()
       
    46 // Starts the exe
       
    47 // ---------------------------------------------------------
       
    48 //
       
    49 GLDEF_C TInt E32Main()
       
    50 	{
       
    51 	return EikStart::RunApplication(NewApplication);
       
    52 	}
       
    53 
       
    54 // ---------------------------------------------------------
       
    55 // CVeiApp::AppDllUid()
       
    56 // Returns application UID
       
    57 // ---------------------------------------------------------
       
    58 //
       
    59 TUid CVeiSimpleCutVideoApp::AppDllUid() const
       
    60     {
       
    61     return KUidSimpleCutVideo;
       
    62     }
       
    63 
       
    64    
       
    65 // ---------------------------------------------------------
       
    66 // CVeiApp::CreateDocumentL()
       
    67 // Creates CVeiDocument object
       
    68 // ---------------------------------------------------------
       
    69 //
       
    70 CApaDocument* CVeiSimpleCutVideoApp::CreateDocumentL()
       
    71     {
       
    72     return CVeiSimpleCutVideoDocument::NewL( *this );
       
    73     }
       
    74 
       
    75 // --------------------------------------------------------- 
       
    76 // CVeiApp::OpenIniFileLC( RFs& aFs ) 
       
    77 // Enables INI file creation 
       
    78 // Returns: 
       
    79 // --------------------------------------------------------- 
       
    80 // 
       
    81 CDictionaryStore* CVeiSimpleCutVideoApp::OpenIniFileLC( RFs& aFs ) const 
       
    82     { 
       
    83     //Opens the application’s ini file if it exists. 
       
    84     //If an ini file does not exist for this application, 
       
    85     //or if it is corrupt, this function creates a new ini file 
       
    86     //and opens that. ini files are located on KIniFileDrive (by default, c:), 
       
    87     //in the same directory as the application DLL. 
       
    88 
       
    89     return CEikApplication::OpenIniFileLC( aFs ); 
       
    90     } 
       
    91 // End of File