Logo Search packages:      
Sourcecode: vdr-plugin-console version File versions  Download package

config.h

/*
 * config.h: A plugin for the Video Disk Recorder
 *
 * See the README file for copyright information and how to reach the author.
 *
 * $Id$
 */


#ifndef __CON_CONFIG_H_
#define __CON_CONFIG_H_


#include <vdr/config.h>


struct sConsoleConfig {

  sConsoleConfig():

    TextColor( 6 ),
    BoldTextColor( 7 ),
    TextBackColor( -1 ),
    Font( 0 ),

    AutoEnterKeyboardMode( true ),
    BellTimeout( 5 ),
    InfobarTimeout( 2 ),
    PreventShutdown( true ),
    BlinkRate( 5 )
  {}


  int TextColor;
  int BoldTextColor;
  int TextBackColor;
  int Font;

  int AutoEnterKeyboardMode;
  int BellTimeout;
  int InfobarTimeout;
  int PreventShutdown;
  int BlinkRate;
};



extern sConsoleConfig config;


extern int consoleOwnerMacro;



// Adapted from vdr

class cConsoleCommand : public cListObject {
private:
  char *title;
  char *command;
  bool confirm;
public:
  cConsoleCommand(void);
  virtual ~cConsoleCommand();
  bool Parse(const char *s);
  const char *Title(void) { return title; }
  bool Confirm(void) { return confirm; }
  const char *Command() { return command; }
  };


class cConsoleCommands : public cConfig<cConsoleCommand> {};

extern cConsoleCommands gl_ConsoleCommands;


#endif // __CON_CONFIG_H_

Generated by  Doxygen 1.6.0   Back to index