PECengine/PresenceManager2/SrcCommon/PEngPresenceManagerDefs.h
branchRCL_3
changeset 13 a941bc465d9f
parent 0 094583676ce7
equal deleted inserted replaced
12:6ca72c0fe49a 13:a941bc465d9f
       
     1 /*
       
     2 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "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 *
       
    14 * Description:  PresenceManager private defines.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef PENGPRESENCEMANAGERCONSTS_H
       
    19 #define PENGPRESENCEMANAGERCONSTS_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include <E32Std.h>
       
    23 
       
    24 
       
    25 // CONSTANTS
       
    26 
       
    27 /**
       
    28  * Completion code for asynchronous operations.
       
    29  *
       
    30  * @since 3.0
       
    31  */
       
    32 enum TPEngAsyncOpResult
       
    33     {
       
    34     EPEngAsyncOpCompleted,
       
    35     EPEngAsyncOpNotCompleted
       
    36     };
       
    37 
       
    38 
       
    39 // MACROS
       
    40 #define RETURN_IF_ERROR( aErrorCode )\
       
    41         { \
       
    42         TInt __err(  aErrorCode ); \
       
    43         if ( __err != KErrNone ) \
       
    44             { \
       
    45             return __err; \
       
    46             } \
       
    47         } \
       
    48      
       
    49 
       
    50 #endif //PENGPRESENCEMANAGERCONSTS_H
       
    51 
       
    52