Diffstat (limited to 'noncore/settings/networksettings2/networksettings2/resources.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/networksettings2/resources.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/noncore/settings/networksettings2/networksettings2/resources.h b/noncore/settings/networksettings2/networksettings2/resources.h index 55d2f29..16355ba 100644 --- a/noncore/settings/networksettings2/networksettings2/resources.h +++ b/noncore/settings/networksettings2/networksettings2/resources.h | |||
@@ -57,26 +57,27 @@ public : | |||
57 | 57 | ||
58 | Name2NetNode_t & netNodes( void ) | 58 | Name2NetNode_t & netNodes( void ) |
59 | { return AllNodeTypes; } | 59 | { return AllNodeTypes; } |
60 | bool netNodeExists( const QString & X ) | 60 | bool netNodeExists( const QString & X ) |
61 | { return AllNodeTypes.find(X)!=0; } | 61 | { return AllNodeTypes.find(X)!=0; } |
62 | ANetNode * findNetNode( const QString & N ) | 62 | ANetNode * findNetNode( const QString & N ) |
63 | { NetNode_t * NNT = AllNodeTypes.find(N); | 63 | { NetNode_t * NNT = AllNodeTypes.find(N); |
64 | return (NNT) ? NNT->NetNode : 0; | 64 | return (NNT) ? NNT->NetNode : 0; |
65 | } | 65 | } |
66 | 66 | ||
67 | Name2SystemFile_t & systemFiles( void ) | 67 | Name2SystemFile_t & systemFiles( void ) |
68 | { return SystemFiles; } | 68 | { return SystemFiles; } |
69 | void addSystemFile( SystemFile * SF ) | 69 | void addSystemFile( const QString & ID, |
70 | { SystemFiles.insert( SF->name(), SF ); } | 70 | const QString & P, |
71 | bool KDI ); | ||
71 | 72 | ||
72 | ANetNodeInstance * createNodeInstance( const QString & S ) | 73 | ANetNodeInstance * createNodeInstance( const QString & S ) |
73 | { ANetNodeInstance * NNI = 0; | 74 | { ANetNodeInstance * NNI = 0; |
74 | NetNode_t * NNT = AllNodeTypes[S]; | 75 | NetNode_t * NNT = AllNodeTypes[S]; |
75 | if( ! NNT ) { | 76 | if( ! NNT ) { |
76 | return 0; | 77 | return 0; |
77 | } | 78 | } |
78 | NNI = NNT->NetNode->createInstance(); | 79 | NNI = NNT->NetNode->createInstance(); |
79 | NNI->initialize(); | 80 | NNI->initialize(); |
80 | return NNI; | 81 | return NNI; |
81 | } | 82 | } |
82 | 83 | ||