idlehomescreen/examples/hscontentcontrolexample/src/HsContentControlApplication.cpp
author jake
Mon, 02 Aug 2010 12:02:47 +0300
branchRCL_3
changeset 70 d12a7ea0f775
permissions -rw-r--r--
Example applications for various Homescreen APIs.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
70
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
     1
/*
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
     2
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
     3
* All rights reserved.
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
     4
* This component and the accompanying materials are made available
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
     6
* which accompanies this distribution, and is available
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
     8
*
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
     9
* Initial Contributors:
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    11
*
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    12
* Contributors:
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    13
*
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    14
* Description:  Content Control example
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    15
*
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    16
*/
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    17
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    18
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    19
// [[[ begin generated region: do not modify [Generated System Includes]
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    20
// ]]] end generated region [Generated System Includes]
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    21
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    22
// [[[ begin generated region: do not modify [Generated Includes]
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    23
#include "HsContentControlApplication.h"
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    24
#include "HsContentControlDocument.h"
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    25
#ifdef EKA2
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    26
#include <eikstart.h>
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    27
#endif
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    28
// ]]] end generated region [Generated Includes]
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    29
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    30
/**
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    31
 * @brief Returns the application's UID (override from CApaApplication::AppDllUid())
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    32
 * @return UID for this application (KUidHsContentControlApplication)
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    33
 */
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    34
TUid CHsContentControlApplication::AppDllUid() const
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    35
    {
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    36
    return KUidHsContentControlApplication;
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    37
    }
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    38
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    39
/**
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    40
 * @brief Creates the application's document (override from CApaApplication::CreateDocumentL())
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    41
 * @return Pointer to the created document object (CHsContentControlDocument)
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    42
 */
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    43
CApaDocument* CHsContentControlApplication::CreateDocumentL()
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    44
    {
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    45
    return CHsContentControlDocument::NewL( *this );
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    46
    }
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    47
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    48
#ifdef EKA2
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    49
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    50
/**
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    51
 *    @brief Called by the application framework to construct the application object
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    52
 *  @return The application (CHsContentControlApplication)
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    53
 */    
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    54
LOCAL_C CApaApplication* NewApplication()
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    55
    {
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    56
    return new CHsContentControlApplication;
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    57
    }
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    58
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    59
/**
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    60
* @brief This standard export is the entry point for all Series 60 applications
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    61
* @return error code
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    62
 */    
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    63
GLDEF_C TInt E32Main()
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    64
    {
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    65
    return EikStart::RunApplication( NewApplication );
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    66
    }
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    67
    
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    68
#else     // Series 60 2.x main DLL program code
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    69
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    70
/**
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    71
* @brief This standard export constructs the application object.
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    72
* @return The application (CHsContentControlApplication)
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    73
*/
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    74
EXPORT_C CApaApplication* NewApplication()
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    75
    {
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    76
    return new CHsContentControlApplication;
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    77
    }
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    78
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    79
/**
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    80
* @brief This standard export is the entry point for all Series 60 applications
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    81
* @return error code
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    82
*/
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    83
GLDEF_C TInt E32Dll(TDllReason /*reason*/)
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    84
    {
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    85
    return KErrNone;
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    86
    }
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    87
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    88
#endif // EKA2