Libmacro  0.2
Libmacro is an extensible macro and hotkey library.
macros_interrupted.h
Go to the documentation of this file.
1 /* Libmacro - A multi-platform, extendable macro and hotkey C library
2  Copyright (C) 2013 Jonathan Pelletier, New Paradigm Software
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Lesser General Public
6  License as published by the Free Software Foundation; either
7  version 2.1 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Lesser General Public License for more details.
13 
14  You should have received a copy of the GNU Lesser General Public
15  License along with this library; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
22 #ifndef MCR_EXTRAS_MACROS_INTERRUPTED_H_
23 #define MCR_EXTRAS_MACROS_INTERRUPTED_H_
24 
26 
27 namespace mcr
28 {
29 class IInterrupt;
31 class MacrosInterruptedPrivate;
32 class MCR_API MacrosInterrupted : public IInterrupt
33 {
34  friend class MacrosInterruptedPrivate;
35 public:
38  virtual ~MacrosInterrupted() override;
39  MacrosInterrupted &operator =(const MacrosInterrupted &copytron);
40 
41  virtual int type() const override { return 0; }
42  virtual void setType(int) override {}
43  virtual const char *target() const override { return nullptr; }
44  virtual void setTarget(const char *) override {}
45  virtual IInterrupt *iinterrupt() const override { return nullptr; }
46  virtual void setIInterrupt(IInterrupt *) override {}
47  virtual void interrupt(const char *target, int type) override;
48 
49  virtual void map(const char *name, Macro *macroPt);
50  virtual void unmap(const char *name);
51  virtual void clear();
52 private:
53  /* non-export */
54  MacrosInterruptedPrivate *_private;
55 };
56 }
57 
58 #endif
Libmacro, by Jonathan Pelletier, New Paradigm Software. Alpha version.
Definition: classes.h:31