- Timestamp:
- Aug 27, 2008, 12:40:43 PM (16 years ago)
- Location:
- trunk/BNS
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/bns.cpp
r1066 r1067 73 73 // Socket and file for outputting the results 74 74 // ------------------------------------------- 75 _caster.push_back(new t_bnscaster(settings.value("mountpoint").toString())); 76 connect(_caster.back(), SIGNAL(error(const QByteArray)), 77 this, SLOT(slotError(const QByteArray))); 78 connect(_caster.back(), SIGNAL(newMessage(const QByteArray)), 79 this, SLOT(slotMessage(const QByteArray))); 75 for (int ic = 1; ic <= 2; ic++) { 76 77 QString mountpoint = settings.value("mountpoint_%1").toString().arg(ic); 78 QString outFileName = settings.value("outFile_%1").toString().arg(ic); 79 QString refSys = settings.value("refSys_%1").toString().arg(ic); 80 81 _caster.push_back(new t_bnscaster(mountpoint, outFileName, refSys)); 82 connect(_caster.back(), SIGNAL(error(const QByteArray)), 83 this, SLOT(slotError(const QByteArray))); 84 connect(_caster.back(), SIGNAL(newMessage(const QByteArray)), 85 this, SLOT(slotMessage(const QByteArray))); 86 } 80 87 81 88 // Log File -
trunk/BNS/bnscaster.cpp
r1066 r1067 22 22 // Constructor 23 23 //////////////////////////////////////////////////////////////////////////// 24 t_bnscaster::t_bnscaster(const QString& mountpoint) { 24 t_bnscaster::t_bnscaster(const QString& mountpoint, const QString& outFileName, 25 const QString& refSys) { 26 25 27 _mountpoint = mountpoint; 26 28 _outSocket = 0; … … 37 39 } 38 40 39 QString outFileName = settings.value("outFile").toString();40 41 if (outFileName.isEmpty()) { 41 42 _outFile = 0; … … 52 53 // --------------- 53 54 _crdTrafo = false; 54 if ( settings.value("refSys").toString()== "ETRS89") {55 if (refSys == "ETRS89") { 55 56 _crdTrafo = true; 56 57 } -
trunk/BNS/bnscaster.h
r1066 r1067 7 7 Q_OBJECT 8 8 public: 9 t_bnscaster(const QString& mountpoint); 9 t_bnscaster(const QString& mountpoint, const QString& outFileName, 10 const QString& refSys); 10 11 virtual ~t_bnscaster(); 11 12 void open();
Note:
See TracChangeset
for help on using the changeset viewer.