libyui
YMacroRecorder.h
1 /*
2  Copyright (C) 2000-2012 Novell, Inc
3  This library is free software; you can redistribute it and/or modify
4  it under the terms of the GNU Lesser General Public License as
5  published by the Free Software Foundation; either version 2.1 of the
6  License, or (at your option) version 3.0 of the License. This library
7  is distributed in the hope that it will be useful, but WITHOUT ANY
8  WARRANTY; without even the implied warranty of MERCHANTABILITY or
9  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
10  License for more details. You should have received a copy of the GNU
11  Lesser General Public License along with this library; if not, write
12  to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
13  Floor, Boston, MA 02110-1301 USA
14 */
15 
16 
17 /*-/
18 
19  File: YMacroRecorder.h
20 
21  Author: Stefan Hundhammer <shundhammer@suse.de>
22 
23 /-*/
24 
25 #ifndef YMacroRecorder_h
26 #define YMacroRecorder_h
27 
28 #include <string>
29 
30 class YWidget;
31 
32 
39 {
40  friend class YMacro;
41 
42 protected:
43 
48 
49 public:
53  virtual ~YMacroRecorder() {}
54 
58  virtual void record( const std::string & macroFileName ) = 0;
59 
63  virtual void endRecording() = 0;
64 
68  virtual bool recording() const = 0;
69 
73  virtual void recordWidgetProperty( YWidget * widget,
74  const char * propertyName ) = 0;
75 
83  virtual void recordMakeScreenShot( bool enabled = false,
84  const std::string & filename = std::string() ) = 0;
85 };
86 
87 #endif // YMacroRecorder_h
Definition: YMacroRecorder.h:38
virtual void record(const std::string &macroFileName)=0
YMacroRecorder()
Definition: YMacroRecorder.h:47
virtual void endRecording()=0
virtual ~YMacroRecorder()
Definition: YMacroRecorder.h:53
virtual void recordMakeScreenShot(bool enabled=false, const std::string &filename=std::string())=0
virtual void recordWidgetProperty(YWidget *widget, const char *propertyName)=0
Definition: YMacro.h:44
virtual bool recording() const =0
Definition: YWidget.h:54