summaryrefslogtreecommitdiff
authorharlekin <harlekin>2003-02-18 09:26:02 (UTC)
committer harlekin <harlekin>2003-02-18 09:26:02 (UTC)
commit3d8495ee454395e95190693af9baa9420f90431f (patch) (unidiff)
tree3b020f74ce0aa21583dcac02812635c0b1f54dcc
parent5cbc3daa3394dd92af19f0d9b567ed366b09c936 (diff)
downloadopie-3d8495ee454395e95190693af9baa9420f90431f.zip
opie-3d8495ee454395e95190693af9baa9420f90431f.tar.gz
opie-3d8495ee454395e95190693af9baa9420f90431f.tar.bz2
no more dummy entry here, since its working and that dummy could confuse users
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/bluebase.cpp11
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 */
121void BlueBase::readConfig() { 110void 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/**