Diffstat (limited to 'noncore/settings/networksettings2/networksettings2/netnode.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/networksettings2/netnode.h | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/noncore/settings/networksettings2/networksettings2/netnode.h b/noncore/settings/networksettings2/networksettings2/netnode.h index 56333c5..f4a5e30 100644 --- a/noncore/settings/networksettings2/networksettings2/netnode.h +++ b/noncore/settings/networksettings2/networksettings2/netnode.h @@ -96,9 +96,13 @@ public: // return TRUE if this node has data to be inserted in systemfile // with name S - virtual bool hasDataFor( const QString & S ) = 0; - // generate data specific for the system file S + virtual bool hasDataFor( const QString & S, bool DeviceSpecific ) = 0; + // generate data specific for a profile and for the system file S // called only IF data was needed virtual bool generateDataForCommonFile( SystemFile & SF, long DevNr, ANetNodeInstance * NNI ) = 0; + // generate data specific for the device for the system file S + // called only IF data was needed + virtual bool generateDeviceDataForCommonFile( + SystemFile & SF, long DevNr, ANetNodeInstance * NNI ) = 0; // does this Node provide a Connection @@ -216,13 +220,13 @@ public : { NNI = TheNNI; } - // downcast + // downcast implemented by specify runtime classes AsDevice * asDevice( void ) - { return (AsDevice *)this; } + { return 0; } AsConnection * asConnection( void ) - { return (AsConnection *)this; } + { return 0; } AsLine * asLine( void ) - { return (AsLine *)this; } + { return 0; } AsFullSetup * asFullSetup( void ) - { return (AsFullSetup *)this; } + { return 0; } // does this node handles this interface e.g.eth0 @@ -385,9 +389,12 @@ public: virtual bool generateProperFilesFor( ANetNodeInstance * ) { return 0; } - virtual bool hasDataFor( const QString & ) + virtual bool hasDataFor( const QString &, bool DS ) { return 0; } virtual bool generateDataForCommonFile( SystemFile & , long , ANetNodeInstance * ) {return 1; } + virtual bool generateDeviceDataForCommonFile( + SystemFile & , long , ANetNodeInstance * ) + {return 1; } private : |