mediasettings/videosettingsplugin/tsrc/testaccesspointentry/stub/inc/cmmanager_shim.h
changeset 46 adbe7d5ba2f5
equal deleted inserted replaced
28:c48470be1ba7 46:adbe7d5ba2f5
       
     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: CmManagerShim stub
       
    15  */
       
    16 
       
    17 #ifndef CMMANAGER_SHIM_H
       
    18 #define CMMANAGER_SHIM_H
       
    19 
       
    20 #include <qstring.h>
       
    21 #include <qhash.h>
       
    22 
       
    23 class CmConnectionMethodShim;
       
    24 
       
    25 namespace CMManagerShim {
       
    26     enum ConnectionMethodAttribute {
       
    27         CmName,
       
    28         CmIapId,
       
    29         CmId,
       
    30     };
       
    31 }
       
    32 
       
    33 
       
    34 class CmManagerShim
       
    35 {
       
    36 
       
    37 public: 
       
    38 
       
    39     /*!
       
    40      *  Constructor.
       
    41      */
       
    42     CmManagerShim();
       
    43 
       
    44     /*!
       
    45      *  Destructor.
       
    46      */
       
    47     ~CmManagerShim();
       
    48     
       
    49     /*!
       
    50      * Returns the connection method queried by its ID.
       
    51      * 
       
    52      * @param[in] connectionMethodId Id of the connection method.
       
    53      * @return Found connection method instance.
       
    54      */
       
    55     CmConnectionMethodShim *connectionMethod(uint connectionMethodId) const;
       
    56     
       
    57     /*!
       
    58      * Returns the list of connection methods that do not belong to any 
       
    59      * destination.
       
    60      * 
       
    61      * @param[out] cmArray On return it is the array of connection method ids.
       
    62      * @param[in] legacyOnly When set to true only Legacy connection method
       
    63      *                       ids (connection methods which do not belong to
       
    64      *                       any destination) will be returned
       
    65      */
       
    66     void connectionMethod(
       
    67         QList<uint> &cmArray,
       
    68         bool legacyOnly = true) const;
       
    69     
       
    70     
       
    71     void clear();
       
    72     
       
    73 public: // data
       
    74     
       
    75     QHash<uint, CmConnectionMethodShim*> mConnectionMethods;
       
    76     
       
    77     static int mConnectionMethodThrowsAtId;
       
    78     static int mDestructorCount;
       
    79 };
       
    80 
       
    81 #endif /* CMMANAGER_SHIM_H */