vpnengine/eventviewer/inc/eventviewer.h
changeset 0 33413c0669b9
equal deleted inserted replaced
-1:000000000000 0:33413c0669b9
       
     1 /*
       
     2 * Copyright (c) 2003-2008 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:   Utility methods for eventviewer
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __EVENTVIEWER__
       
    21 #define __EVENTVIEWER__
       
    22 
       
    23 #include <cdblen.h>
       
    24 
       
    25 ////////////////////////////////////////////////////////
       
    26 // Typedefs
       
    27 ////////////////////////////////////////////////////////
       
    28 
       
    29 typedef TBuf8<KCommsDbSvrMaxFieldLength> TIapName;
       
    30 
       
    31 
       
    32 /////////////////////////////////////////////////////////
       
    33 // EventViewer  Class
       
    34 /////////////////////////////////////////////////////////
       
    35 class EventViewer 
       
    36 {
       
    37 public: 
       
    38     IMPORT_C static TInt GetIapName(TUint32 aIapId, TIapName& aIapName);
       
    39     IMPORT_C static TInt GetSnapName(TUint32 aSnapId, TIapName& aSnapName);
       
    40 
       
    41     IMPORT_C static TInt GetIapNames(TUint32 aIapId1, TIapName& aIapName1,
       
    42                                   TUint32 aIapId2, TIapName& aIapName2);
       
    43 
       
    44 
       
    45 private:
       
    46     static void DoGetIapNameL(TUint32 aIapId, TIapName& aIapName);
       
    47 
       
    48     static void DoGetIapNamesL(TUint32 aIapId1, TIapName& aIapName1,
       
    49                                TUint32 aIapId2, TIapName& aIapName2);
       
    50                                                                                              
       
    51     static void DoGetSnapNameL(TUint32 aSnapId, TIapName& aSnapName);                               
       
    52 };
       
    53 #endif