searcher/searchserver/inc/searchserverhelper.h
changeset 0 671dee74050a
equal deleted inserted replaced
-1:000000000000 0:671dee74050a
       
     1 /*
       
     2 * Copyright (c) 2010 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: 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CSEARCHSERVERHELPER_H
       
    19 #define CSEARCHSERVERHELPER_H
       
    20 
       
    21 #include "cpixerror.h"
       
    22 
       
    23 class SearchServerHelper
       
    24 	{
       
    25 public:
       
    26 
       
    27     /**
       
    28      * Helper method for cpix error checking.
       
    29      * In case of error this method clears error and leaves with given error code
       
    30      * @aResult cpix type containing error code
       
    31      * @aErrorCode Leaves with this code in case of cpix error
       
    32      */
       
    33     template <typename T>
       
    34     inline static void CheckCpixErrorL(T* aResult, TInt aErrorCode);
       
    35 
       
    36     /**
       
    37      * Log cpix error to rdebug/file.
       
    38      * @param aError Error to log.
       
    39      */
       
    40     inline static void LogErrorL(cpix_Error& aError);
       
    41 	};
       
    42 
       
    43 #include "SearchServerHelper.inl"
       
    44 
       
    45 #endif // CSEARCHSERVERHELPER_H