/*
 * msgservice.h: A plugin for the Video Disk Recorder
 *
 * See the README file for copyright information and how to reach the author.
 *
 * Date: 11.04.05 - 10.12.05, horchi 
 */

//***************************************************************************
// Message Service
//***************************************************************************

class MessageService
{
   public:
 
      enum Error
      {
         errMessageServiceFirst = -1000,

         errMessageToBig,

         wrnSysInterrupt,
         wrnNoMessage
      };

      enum Size
      {
         sizeBuffer = 1000
      };

      enum Event
      {
         evtUnknown = na,
         evtCheck,         // = 0
         evtShow,          // = 1
         evtAsk,           // = 2
         evtConfirm,       // = 3
         evtAbort,         // = 4
         evtAnswer         // = 5
      };
      
      struct Header
      {
         long sender;
         long receiver;
         int event;
         int type;           // eMessageType
      };
};

typedef MessageService Ms;
