author | wimpie <wimpie> | 2004-04-08 01:25:02 (UTC) |
---|---|---|
committer | wimpie <wimpie> | 2004-04-08 01:25:02 (UTC) |
commit | 2ab70064958916733daf1b5f095cef562b2e9163 (patch) (side-by-side diff) | |
tree | 445f054fee55b678dab07e10bd5571b4651586d8 /noncore/settings/networksettings2/bluetooth/bluetooth_NN.cpp | |
parent | 93ead8f65765ec7af4c14efeb2758c1cf7bcbd89 (diff) | |
download | opie-2ab70064958916733daf1b5f095cef562b2e9163.zip opie-2ab70064958916733daf1b5f095cef562b2e9163.tar.gz opie-2ab70064958916733daf1b5f095cef562b2e9163.tar.bz2 |
Link with libopiecore2
added linke to btmgr
Diffstat (limited to 'noncore/settings/networksettings2/bluetooth/bluetooth_NN.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/bluetooth/bluetooth_NN.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/noncore/settings/networksettings2/bluetooth/bluetooth_NN.cpp b/noncore/settings/networksettings2/bluetooth/bluetooth_NN.cpp index 1d0a0f7..b59b4f0 100644 --- a/noncore/settings/networksettings2/bluetooth/bluetooth_NN.cpp +++ b/noncore/settings/networksettings2/bluetooth/bluetooth_NN.cpp @@ -39,35 +39,43 @@ ANetNodeInstance * BluetoothBNEPNetNode::createInstance( void ) { } const char ** BluetoothBNEPNetNode::needs( void ) { return BluetoothBNEPNeeds; } const char * BluetoothBNEPNetNode::provides( void ) { return "device"; } bool BluetoothBNEPNetNode::generateProperFilesFor( ANetNodeInstance * ) { - return 1; + return 0; } bool BluetoothBNEPNetNode::hasDataFor( const QString & S ) { return S == "interfaces"; } bool BluetoothBNEPNetNode::generateDeviceDataForCommonFile( - SystemFile & , - long ) { - return 1; + SystemFile & S , + long DevNr) { + QString NIC = genNic( DevNr ); + + if( S.name() == "interfaces" ) { + // generate mapping stanza for this interface + S << "# check if " << NIC << " can be brought UP" << endl; + S << "mapping " << NIC << endl; + S << " script networksettings2-request" << endl << endl; + } + return 0; } QString BluetoothBNEPNetNode::genNic( long nr ) { QString S; return S.sprintf( "bnep%ld", nr ); } void BluetoothBNEPNetNode::setSpecificAttribute( QString & A, QString & V ) { if( A == "interfacecount" ) { InstanceCount = V.toLong(); } |