idlehomescreen/examples/mcsexample/inc/MCSExampleApplication.h
author jake
Mon, 02 Aug 2010 12:02:47 +0300
branchRCL_3
changeset 29 d12a7ea0f775
permissions -rw-r--r--
Example applications for various Homescreen APIs.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
29
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:
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
#ifndef __MCSEXAMPLEAPPLICATION_H__
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    19
#define __MCSEXAMPLEAPPLICATION_H__
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    20
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    21
// INCLUDES
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    22
#include <aknapp.h>
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    23
#include "MCSExample.hrh"
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    24
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    25
// UID for the application;
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    26
// this should correspond to the uid defined in the mmp file
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    27
const TUid KUidMCSExampleApp =
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    28
    {
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    29
    _UID3
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    30
    };
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    31
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    32
// CLASS DECLARATION
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    33
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    34
/**
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    35
 * CMCSExampleApplication application class.
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    36
 * Provides factory to create concrete document object.
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    37
 * An instance of CMCSExampleApplication is the application part of the
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    38
 * AVKON application framework for the MCSExample example application.
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    39
 */
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    40
class CMCSExampleApplication : public CAknApplication
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    41
    {
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    42
public:
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    43
    // Functions from base classes
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    44
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    45
    /**
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    46
     * From CApaApplication, AppDllUid.
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    47
     * @return Application's UID (KUidMCSExampleApp).
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    48
     */
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    49
    TUid AppDllUid() const;
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    50
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    51
protected:
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    52
    // Functions from base classes
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    53
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    54
    /**
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    55
     * From CApaApplication, CreateDocumentL.
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    56
     * Creates CMCSExampleDocument document object. The returned
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    57
     * pointer in not owned by the CMCSExampleApplication object.
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    58
     * @return A pointer to the created document object.
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    59
     */
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    60
    CApaDocument* CreateDocumentL();
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    61
    };
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    62
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    63
#endif // __MCSEXAMPLEAPPLICATION_H__
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    64
// End of File