ccservices/cmsservices/cmsengine/Server/inc/cmsserverutils.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2007 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 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include <e32std.h>
       
    22 #include "cmscontactfielditem.h"
       
    23 
       
    24 //KONSTS
       
    25 _LIT( KCmsServerLogDir,                             "CCA" );
       
    26 _LIT( KCmsServerLogFile,                            "cmsserver.txt" );
       
    27 
       
    28 class CCmsContactFieldItem;
       
    29 
       
    30 class CmsServerUtils
       
    31     {
       
    32     public:
       
    33         
       
    34         static HBufC* ReadMsgParam16LC( TInt aMsgIndex, const RMessage2& aMessage );
       
    35         
       
    36         static HBufC8* ReadMsgParam8LC( TInt aMsgIndex, const RMessage2& aMessage );
       
    37         
       
    38         static TInt ConvertDesc( const TDesC8& aNumberDesc );
       
    39     
       
    40         static TPtr8 DescriptorCast( const TDesC8& aConstData );
       
    41 
       
    42         static HBufC8* ConvertDescLC( const TDesC& a16bitDescriptor );
       
    43 
       
    44         static HBufC* ConvertDescLC( const TDesC8& a8bitDescriptor );
       
    45 
       
    46         static TInt MatchFieldType( CCmsContactFieldItem::TCmsContactField aCmsFieldType );
       
    47         
       
    48         static TBool IsFeatureSupportedL( TInt aFeature, const TDesC& aScheme );
       
    49         
       
    50         static TBool IsVoIPSupportedL();
       
    51     
       
    52         static CCmsContactFieldItem::TCmsContactField MatchFieldType( TInt aPhonebookResId );
       
    53     
       
    54  
       
    55     };