Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

GPRS_NN.cpp

Go to the documentation of this file.
00001 #include <resources.h>
00002 #include <qpe/qpeapplication.h>
00003 #include <netnode.h>
00004 #include "GPRS_NN.h"
00005 #include "GPRS_NNI.h"
00006 
00007 #include "netnodeinterface.h"
00008 
00009 static const char * GPRSNeeds[] = 
00010     { "GPRS",
00011       0
00012     };
00013 
00014 static const char * GPRSProvides[] = 
00015     { "connection", 
00016       0
00017     };
00018 
00022 GPRSNetNode::GPRSNetNode() : ANetNode(tr("GPRS capable device")) {
00023       NSResources->addSystemFile( 
00024         "pap-secrets", "/etc/ppp/pap-secrets", 0 );
00025 }
00026 
00030 GPRSNetNode::~GPRSNetNode(){
00031 }
00032 
00033 const QString GPRSNetNode::nodeDescription(){
00034       return tr("\
00035 <p>provides access to a GPRS capable device.</p>\
00036 "
00037 );
00038 }
00039 
00040 ANetNodeInstance * GPRSNetNode::createInstance( void ) {
00041       return new AGPRSDevice( this );
00042 }
00043 
00044 bool GPRSNetNode::hasDataForFile( SystemFile & S ) {
00045       return S.name() == "pap-secrets";
00046 }
00047 
00048 short GPRSNetNode::generateFile( SystemFile & , 
00049                                  ANetNodeInstance * ,
00050                                  long ) {
00051                                    
00052       return 0;
00053 }
00054 
00055 const char ** GPRSNetNode::needs( void ) {
00056       return GPRSNeeds;
00057 }
00058 
00059 const char ** GPRSNetNode::provides( void ) {
00060       return GPRSProvides;
00061 }
00062 
00063 void GPRSNetNode::setSpecificAttribute( QString & , QString & ) {
00064 }
00065 
00066 void GPRSNetNode::saveSpecificAttribute( QTextStream & ) {
00067 }
00068 
00069 QStringList GPRSNetNode::properFiles( void ) {
00070       QStringList SL;
00071 
00072       SL << "peers";
00073       SL << "chatscripts";
00074       SL << "extra";
00075       return SL;
00076 }
00077 
00078 OPIE_NS2_PLUGIN(  NetNodeInterface_T<GPRSNetNode> )

Generated on Sat Nov 5 16:17:53 2005 for OPIE by  doxygen 1.4.2