Revision c6e4f54d

View differences:

ChangeLog
1
2004-01-02  John Knottenbelt  <jak@users.sourceforge.net>
2
	Added -n,--noconflicts option to dvbsched which
3
	won't schedule the job if it produces any conflicts.
4

  
1 5
2003-12-30  John Knottenbelt  <jak@users.sourceforge.net>
2 6
	Recalculate last job number when restarting dvbd.
3 7
	
TODO
2 2
you have suggestions on what else to put on this
3 3
list please contact me at jak@users.sourceforge.net
4 4
   
5
Output threshold for OutputBuffer.
6

  
7
Allow scheduled jobs to be removed (dvbsched)
8 5
Xine input plugin
9 6
Satellite and Cable support.   
10 7
Refactor classes:
configure.ac
1
AC_INIT(dvbd, 0.5.5)
1
AC_INIT(dvbd, 0.5.6)
2 2
AC_CONFIG_SRCDIR(src/dvbd.cpp)
3 3
AM_INIT_AUTOMAKE
4 4
AM_CONFIG_HEADER(config.h)
debian/changelog
1
dvbd (0.5.6) unstable; urgency=low
2
  * New upstream release
3
 -- John Knottenbelt <jak@users.sourceforge.net>  Sun, 02 Jan 2004 18:28:00 +0000
4

  
1 5
dvbd (0.5.5) unstable; urgency=low
2 6
  * New upstream release
3 7
 -- John Knottenbelt <jak@users.sourceforge.net>  Sun, 30 Dec 2003 22:05:00 +0000
src/dvbsched.cpp
54 54
  bool convertToPS = false;
55 55
  int priority = 10;
56 56
  bool removeSpecified = false;
57
  bool noConflicts = false;
57 58
  int removeJob = -1;
58 59

  
59 60
  while (true) {
......
62 63
      {"socket", 1, 0, 's'},
63 64
      {"ps", 0, 0, 'P'},
64 65
      {"remove", 1, 0, 'r'},
66
      {"noconflicts", 0, 0, 'n'},
65 67
      {0, 0, 0, 0}
66 68
    };
67 69
 
......
83 85
      removeSpecified = true;
84 86
      removeJob = toInt(optarg);
85 87
      break;
88
    case 'n':
89
      noConflicts = true;
90
      break;
86 91
    default:
87 92
      usage(argv[0]);
88 93
      return 1;
......
138 143
    for (StringList::iterator i = messages.begin(); i != messages.end(); i++)
139 144
      std::cout << *i << "\n";
140 145

  
141
    std::cout << "Do you still wish to schedule the job?\n";
142

  
143
    char answer;
144
    while (std::cin >> answer) {
145
      switch (tolower(answer)) {
146
      case 'y':
147
	std::cout << "Job Scheduled\n";
148
	return 0;
149
      case 'n':
150
	client.removeJob(job);
151
	std::cout << "Job not scheduled.\n";
152
	return 0;
153
      default:
154
	std::cout << "Please answer Y or N\n";
155
	break;
146
    if (!noConflicts) {
147
      std::cout << "Do you still wish to schedule the job?\n";
148

  
149
      char answer;
150
      while (std::cin >> answer) {
151
	switch (tolower(answer)) {
152
	case 'y':
153
	  std::cout << "Job Scheduled\n";
154
	  return 0;
155
	case 'n':
156
	  client.removeJob(job);
157
	  std::cout << "Job not scheduled.\n";
158
	  return 0;
159
	default:
160
	  std::cout << "Please answer Y or N\n";
161
	  break;
162
	}
156 163
      }
157 164
    }
165
    else
166
      client.removeJob(job);
158 167
  }
159 168

  
160 169
}
......
189 198
	    << "  -r, --remove           Remove a job from the schedule\n"
190 199
	    << "  -s, --socket           Specify socket to connect to\n"
191 200
	    << "                         (default is " << DEFAULT_SOCKET_FILE << ")\n"
192
	    << "  -P, --ps               Convert stream to program stream\n";
201
	    << "  -P, --ps               Convert stream to program stream\n"
202
	    << "  -n, --noconflicts      Don't schedule if it makes a conflict\n";
193 203
}
194 204

  
195 205
// For parsetime

Also available in: Unified diff