connectivitymodules/SeCon/services/csc/inc/caplist.h
branchRCL_3
changeset 20 4a793f564d72
parent 0 d0791faffa3f
equal deleted inserted replaced
19:0aa8cc770c8a 20:4a793f564d72
       
     1 /*
       
     2 * Copyright (c) 2005-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:  CCapList header file.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef _CAPLIST_H_
       
    20 #define _CAPLIST_H_
       
    21 
       
    22 // INCLUDES
       
    23 
       
    24 #include <e32base.h>
       
    25 #include <badesca.h>
       
    26 #include "stringlist.h"
       
    27 
       
    28 //
       
    29 // Class CCapList
       
    30 //
       
    31 NONSHARABLE_CLASS( CCapList ) : public CBase
       
    32 {
       
    33 public:
       
    34     /**
       
    35      * Two-phase constructor.
       
    36      * @return CCapList instance
       
    37      */
       
    38     static CCapList* NewL();
       
    39     /**
       
    40      * Destructor
       
    41      * @return none
       
    42      */
       
    43     ~CCapList();
       
    44 
       
    45 private:
       
    46     /**
       
    47      * Constructor
       
    48      * @return none
       
    49      */
       
    50     CCapList();
       
    51     /**
       
    52      * Initializes the member data
       
    53      * @return none
       
    54      */
       
    55     void ConstructL();
       
    56     /**
       
    57      * Operator =
       
    58      * @param aList The data to be copied
       
    59      * @return none
       
    60      */
       
    61     void operator=(const CCapList& aList); // not allowed
       
    62 
       
    63 public:
       
    64     /**
       
    65      * Returns the list
       
    66      * @return The CStringList object
       
    67      */
       
    68     CStringList* List();
       
    69 
       
    70 public:
       
    71     /**
       
    72      * Find element
       
    73      * @param aId
       
    74      * @param aType
       
    75      * @param aIndex (Default=0)
       
    76      * @return position
       
    77      */
       
    78     TInt Find(TInt aId, TInt aType, TInt aIndex=0);
       
    79     /**
       
    80      * Find from mark
       
    81      * @param aId
       
    82      * @param aType
       
    83      * @return position
       
    84      */
       
    85     TInt FindFromMark(TInt aId, TInt aType);
       
    86     /**
       
    87      * Finds service xml-file identification header. This header must be the first 
       
    88      * line in every service file.
       
    89      * @return ETrue if service header found
       
    90      */
       
    91     TBool FindServiceHeader();
       
    92     /**
       
    93      * Find service
       
    94      * @param aList The source list
       
    95      * @return ETrue if Service is found
       
    96      */
       
    97     TBool FindServiceL(CStringList* aList);
       
    98 
       
    99 private:
       
   100     CStringList*   iList;           // has
       
   101 };
       
   102 
       
   103 #endif 
       
   104 
       
   105 // End of file
       
   106 
       
   107