idlehomescreen/examples/mcsexample/inc/MCSExample.pan
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 __MCSEXAMPLE_PAN__
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    19
#define __MCSEXAMPLE_PAN__
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    20
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    21
/** MCSExample application panic codes */
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    22
enum TMCSExamplePanics
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    23
    {
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    24
    EMCSExampleUi = 1
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    25
    // add further panics here
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    26
    };
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    27
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    28
inline void Panic(TMCSExamplePanics aReason)
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    29
    {
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    30
    _LIT(applicationName, "MCSExample");
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    31
    User::Panic(applicationName, aReason);
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    32
    }
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    33
d12a7ea0f775 Example applications for various Homescreen APIs.
jake
parents:
diff changeset
    34
#endif // __MCSEXAMPLE_PAN__