bluetoothengine/btui/inc/btuimodeltypes.h
branchRCL_3
changeset 56 9386f31cc85b
parent 55 613943a21004
child 61 269724087bed
equal deleted inserted replaced
55:613943a21004 56:9386f31cc85b
     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 BTUIMODELTYPES_H
       
    19 #define BTUIMODELTYPES_H
       
    20 
       
    21 #include <qglobal.h>
       
    22 #include <QMap>
       
    23 #include <QVariant>
       
    24 #include <QList>
       
    25 
       
    26 // A data item in this model DLL. For example, power state item consists 
       
    27 // of the information regarding the current Bluetooth power state.
       
    28 typedef QMap< int, QVariant > BtuiModelDataItem;
       
    29 
       
    30 // A category of the model data for specific group
       
    31 typedef QList< BtuiModelDataItem > BtuiModelDataSource;
       
    32 
       
    33 Q_DECLARE_METATYPE(BtuiModelDataItem)
       
    34 Q_DECLARE_METATYPE(BtuiModelDataSource)
       
    35 
       
    36 #ifdef BUILD_BTUIMODEL
       
    37 #define BTUIMODEL_IMEXPORT Q_DECL_EXPORT
       
    38 #else
       
    39 #define BTUIMODEL_IMEXPORT Q_DECL_IMPORT
       
    40 #endif
       
    41 
       
    42 
       
    43 #endif // BTUIMODELTYPES_H