-rw-r--r-- | noncore/net/opietooth/manager/bluebase.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp index 6c17974..b31e14f 100644 --- a/noncore/net/opietooth/manager/bluebase.cpp +++ b/noncore/net/opietooth/manager/bluebase.cpp | |||
@@ -74,61 +74,50 @@ BlueBase::BlueBase( QWidget* parent, const char* name, WFlags fl ) | |||
74 | 74 | ||
75 | 75 | ||
76 | // let hold be rightButtonClicked() | 76 | // let hold be rightButtonClicked() |
77 | QPEApplication::setStylusOperation( ListView2->viewport(), QPEApplication::RightOnHold); | 77 | QPEApplication::setStylusOperation( ListView2->viewport(), QPEApplication::RightOnHold); |
78 | QPEApplication::setStylusOperation( ListView4->viewport(), QPEApplication::RightOnHold); | 78 | QPEApplication::setStylusOperation( ListView4->viewport(), QPEApplication::RightOnHold); |
79 | 79 | ||
80 | //Load all icons needed | 80 | //Load all icons needed |
81 | m_offPix = Resource::loadPixmap( "opietooth/notconnected" ); | 81 | m_offPix = Resource::loadPixmap( "opietooth/notconnected" ); |
82 | m_onPix = Resource::loadPixmap( "opietooth/connected" ); | 82 | m_onPix = Resource::loadPixmap( "opietooth/connected" ); |
83 | m_findPix = Resource::loadPixmap( "opietooth/find" ); | 83 | m_findPix = Resource::loadPixmap( "opietooth/find" ); |
84 | 84 | ||
85 | QPalette pal = this->palette(); | 85 | QPalette pal = this->palette(); |
86 | QColor col = pal.color( QPalette::Active, QColorGroup::Background ); | 86 | QColor col = pal.color( QPalette::Active, QColorGroup::Background ); |
87 | pal.setColor( QPalette::Active, QColorGroup::Button, col ); | 87 | pal.setColor( QPalette::Active, QColorGroup::Button, col ); |
88 | pal.setColor( QPalette::Inactive, QColorGroup::Button, col ); | 88 | pal.setColor( QPalette::Inactive, QColorGroup::Button, col ); |
89 | pal.setColor( QPalette::Normal, QColorGroup::Button, col ); | 89 | pal.setColor( QPalette::Normal, QColorGroup::Button, col ); |
90 | pal.setColor( QPalette::Disabled, QColorGroup::Button, col ); | 90 | pal.setColor( QPalette::Disabled, QColorGroup::Button, col ); |
91 | this->setPalette( pal ); | 91 | this->setPalette( pal ); |
92 | 92 | ||
93 | setCaption( tr( "Bluetooth Manager" ) ); | 93 | setCaption( tr( "Bluetooth Manager" ) ); |
94 | 94 | ||
95 | readConfig(); | 95 | readConfig(); |
96 | initGui(); | 96 | initGui(); |
97 | 97 | ||
98 | //TESTING | ||
99 | ListView2->setRootIsDecorated(true); | 98 | ListView2->setRootIsDecorated(true); |
100 | 99 | ||
101 | BTDeviceItem *topLV2 = new BTDeviceItem( ListView2, RemoteDevice("xx:", "Siemens S45" ) ); | ||
102 | topLV2->setPixmap( 1, m_onPix ); | ||
103 | Services s1; | ||
104 | s1.setServiceName( "Serial" ); | ||
105 | s1.insertClassId(1, "BlueNic"); | ||
106 | (void) new BTServiceItem( topLV2, s1 ); | ||
107 | s1.setServiceName( "BlueNic" ); | ||
108 | s1.insertClassId(2, "Obex"); | ||
109 | (void) new BTServiceItem( topLV2, s1 ); | ||
110 | |||
111 | writeToHciConfig(); | 100 | writeToHciConfig(); |
112 | // search conncetions | 101 | // search conncetions |
113 | addConnectedDevices(); | 102 | addConnectedDevices(); |
114 | m_iconLoader = new BTIconLoader(); | 103 | m_iconLoader = new BTIconLoader(); |
115 | readSavedDevices(); | 104 | readSavedDevices(); |
116 | } | 105 | } |
117 | 106 | ||
118 | /** | 107 | /** |
119 | * Reads all options from the config file | 108 | * Reads all options from the config file |
120 | */ | 109 | */ |
121 | void BlueBase::readConfig() { | 110 | void BlueBase::readConfig() { |
122 | 111 | ||
123 | Config cfg( "bluetoothmanager" ); | 112 | Config cfg( "bluetoothmanager" ); |
124 | cfg.setGroup( "bluezsettings" ); | 113 | cfg.setGroup( "bluezsettings" ); |
125 | 114 | ||
126 | m_deviceName = cfg.readEntry( "name" , "No name" ); // name the device should identify with | 115 | m_deviceName = cfg.readEntry( "name" , "No name" ); // name the device should identify with |
127 | m_defaultPasskey = cfg.readEntryCrypt( "passkey" , "" ); // <- hmm, look up how good the trolls did that, maybe too weak | 116 | m_defaultPasskey = cfg.readEntryCrypt( "passkey" , "" ); // <- hmm, look up how good the trolls did that, maybe too weak |
128 | m_useEncryption = cfg.readBoolEntry( "useEncryption" , TRUE ); | 117 | m_useEncryption = cfg.readBoolEntry( "useEncryption" , TRUE ); |
129 | m_enableAuthentification = cfg.readBoolEntry( "enableAuthentification" , TRUE ); | 118 | m_enableAuthentification = cfg.readBoolEntry( "enableAuthentification" , TRUE ); |
130 | m_enablePagescan = cfg.readBoolEntry( "enablePagescan" , TRUE ); | 119 | m_enablePagescan = cfg.readBoolEntry( "enablePagescan" , TRUE ); |
131 | m_enableInquiryscan = cfg.readBoolEntry( "enableInquiryscan" , TRUE ); | 120 | m_enableInquiryscan = cfg.readBoolEntry( "enableInquiryscan" , TRUE ); |
132 | } | 121 | } |
133 | 122 | ||
134 | /** | 123 | /** |