#ifndef KBUSYMANAGER_H
#define KBUSYMANAGER_H

class KBusyManager
{
public:
  static KBusyManager* self ();
  
  bool isBusy () const;
  void setBusy (bool val);
  void restore ();
 
  ~KBusyManager(); // to make gcc happy, should be private.
  
private:
  KBusyManager ();

  KBusyManager& operator= (const KBusyManager&); // undefined
  
  class Private;
  Private* d;
};

#endif // KBUSYMANAGER_H
