~vbursian/research-assistant/intervers

« back to all changes in this revision

Viewing changes to RAPlugins/BasicDevices/Telecom.cpp

  • Committer: Viktor Bursian
  • Date: 2013-06-06 15:10:08 UTC
  • Revision ID: vbursian@gmail.com-20130606151008-6641eh62f0lgx8jt
Tags: version_0.3.0
versionĀ 0.3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
////////////////////////////////////////////////////////////////////////////////
2
 
/*! @file Telecom.cpp   .
 
2
/*! @file Telecom.cpp   Short message communicator.
3
3
- Part of BasicDevices - Research Assistant Plugin package.
4
4
- Uses  RAGUI - Research Assistant Graphical User Interface.
5
5
- Uses  QtGui v.4.6  -  http://qt.nokia.com/
11
11
*///////////////////////////////////////////////////////////////////////////////
12
12
#include "Telecom.h"
13
13
#include "NetOps.h"
14
 
#include "GeneralGUI.h"
15
14
#include <QDebug>
16
15
namespace RA {
17
16
//------------------------------------------------------------------------------
26
25
  DeviceCfg |= "Settings";
27
26
  DeviceSettings = DeviceCfg->GetAttr("Settings");
28
27
  if( DeviceSettings.IsCorrect() ){
29
 
    DeviceSettings |= attr("Timeout",sPhysValue(60.0,sUnits("s")));
 
28
    DeviceSettings |= attr("Timeout",sPhysValue(60.0,"s"));
30
29
  };
31
30
  sDriver::Preconfigure(DeviceCfg);
32
31
};
43
42
sTelecom::sTelecom (sString   DevicetId
44
43
                   ,sNodePtr  DeviceCfg)
45
44
    :sDriver(DevicetId,DeviceCfg)
46
 
    ,TheTimeout(1.0,sUnits("s"))
 
45
    ,TheTimeout(1.0,"s")
47
46
{
48
47
  Preconfigure(DeviceConfig);
49
48
  if( DeviceSettings.IsCorrect() ){