engine/inc/Podcatcher.pan
author Sebastian Brannstrom <sebastianb@symbian.org>
Thu, 21 Oct 2010 18:52:18 +0100
branchRCL_3
changeset 264 6dfdf1d9da5c
parent 114 27f6f5827e5d
child 305 dc1c3d779802
permissions -rw-r--r--
Adding new toolbar icons
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
114
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
     1
/*
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
     2
* Copyright (c) 2010 Sebastian Brannstrom
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
     3
*
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
     4
* All rights reserved.
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
     5
* This component and the accompanying materials are made available
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
     6
* under the terms of the License "Eclipse Public License v1.0"
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
     7
* which accompanies this distribution, and is available
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
     8
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
     9
*
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
    10
* Initial Contributors:
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
    11
* EmbedDev AB - initial contribution.
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
    12
*
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
    13
* Contributors:
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
    14
*
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
    15
* Description:
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
    16
*
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
    17
*/
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
    18
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
    19
#ifndef __PODCATCHER_PAN__
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
    20
#define __PODCATCHER_PAN__
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
    21
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
    22
enum TPodcatcherPanics
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
    23
    {
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
    24
    EPodcatcherPanicDB = 1,
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
    25
    EPodcatcherPanicAlreadyActive,
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
    26
    EPodcatcherPanicFeedEngineState,
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
    27
    EPodcatcherPanicFeedView
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
    28
    };
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
    29
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
    30
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
    31
inline void Panic(TPodcatcherPanics aReason)
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
    32
    {
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
    33
    _LIT(applicationName,"Podcatcher");
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
    34
    User::Panic(applicationName, aReason);
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
    35
    }
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
    36
27f6f5827e5d Cleaned up panic handling
teknolog
parents:
diff changeset
    37
#endif