|
1 /* |
|
2 * Copyright (c) 2006-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: Maintains a Bluetooth devices data model for blocked devices view. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef BTBLOCKEDMODEL_H |
|
19 #define BTBLOCKEDMODEL_H |
|
20 |
|
21 #include "btdevmodelbase.h" |
|
22 /** |
|
23 * This is a adds funtionality to show only blocked devices to BTDevModelBase. |
|
24 * |
|
25 * It act as a mediator between UI applications and Bluetooth Engine Device Management API. |
|
26 * |
|
27 *@lib btdevmodel.dll |
|
28 *@since S60 V3.2 |
|
29 */ |
|
30 NONSHARABLE_CLASS(CBTBlockedModel) : public CBTDevModelBase |
|
31 { |
|
32 public: // Constructors and destructor |
|
33 /** NewL function |
|
34 * @param aObserver The observer will receive information about command completes and |
|
35 * changes in the devices. |
|
36 * @param aOrder The order the devices are sorted. Default order is added by CBTDevMan, so |
|
37 * this class can assume this parameter to be used. This class is responsible for deleting this parameter on |
|
38 * its destructor. |
|
39 */ |
|
40 static CBTBlockedModel* NewL(MBTDeviceObserver* aObserver , |
|
41 TBTDeviceSortOrder* aOrder ); |
|
42 /** Destructor |
|
43 */ |
|
44 virtual ~CBTBlockedModel(); |
|
45 |
|
46 /** Add new device to the list, but only if the device is blocked. |
|
47 * This function will filter out those devices that are not blocked. |
|
48 *@param aRegdevice the device to be added to the list |
|
49 */ |
|
50 void HandleNewDeviceL(const CBTDevice* aRegDevice, |
|
51 TNameEntry* aNameEntry); |
|
52 |
|
53 private: |
|
54 /** Constructor |
|
55 * @param aObserver The observer will receive information about command completes and |
|
56 * changes in the devices. |
|
57 * @param aOrder The order the devices are sorted. Default order is added by CBTDevMan, so |
|
58 * this class can assume this parameter to be used. This class is responsible for deleting this parameter on |
|
59 * its destructor. |
|
60 */ |
|
61 CBTBlockedModel(MBTDeviceObserver* aObserver , |
|
62 TBTDeviceSortOrder* aOrder ); |
|
63 /** Symbian 2nd phase constuctor that may leave. |
|
64 *@param None. |
|
65 * @return None. |
|
66 */ |
|
67 void ConstructL(); |
|
68 |
|
69 |
|
70 }; |
|
71 |
|
72 #endif |
|
73 |