Revision 59be6a47 src/recording.cpp

View differences:

src/recording.cpp
18 18

  
19 19
#include "config.h"
20 20
#include "utils.h"
21
#include "stringutil.h"
21 22
#include "recording.h"
22 23

  
23 24
Recording::~Recording()
......
32 33
	   localtime(&startTime));
33 34

  
34 35
  o << job << " " << uid << " " << dateTime << " " << type << " " 
35
    << escapeWS(channel) << " " 
36
    << escapeWS(channel) << " " << ::toString(convertToPS) << " "
36 37
    << duration << " " << priority << " " << escapeWS(path);
37 38

  
38 39
  return o;
......
40 41

  
41 42
std::istream &operator >> (std::istream &i, Recording &r)
42 43
{
43
  std::string datePart, timePart, channel, path;
44
  std::string datePart, timePart, channel, path, convertToPS;
44 45

  
45 46
  i >> r.job 
46 47
    >> r.uid >> datePart >> timePart >> r.type >> channel
47
    >> r.duration >> r.priority >> path;
48
    >> convertToPS >> r.duration >> r.priority >> path;
48 49

  
49 50
  r.channel = unescapeWS(channel);
51
  r.convertToPS = toBool(convertToPS);
50 52
  r.path = unescapeWS(path);
51 53
  
52 54
  std::string dateTime = datePart + " " + timePart;

Also available in: Unified diff