libyui
3.4.2
YBuiltinCaller.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: YBuiltinCaller.h
20
21
Author: Stefan Hundhammer <sh@suse.de>
22
23
/-*/
24
25
#ifndef YBuiltinCaller_h
26
#define YBuiltinCaller_h
27
28
29
/**
30
* Abstract base class for transparently calling a built-in function.
31
* Derived classes will want to add some methods to store the function to be
32
* called, arguments to that function and its result and to retrieve the result
33
* when needed.
34
*
35
* See YCPBuiltinCaller.h for an implementation.
36
**/
37
class
YBuiltinCaller
38
{
39
protected
:
40
YBuiltinCaller
() {}
41
42
public
:
43
virtual
~
YBuiltinCaller
() {}
44
45
/**
46
* Call the built-in. This will be called in the UI thread with appropriate
47
* syncing between the threads.
48
*
49
* Derived classes might want to store the result of the call in a member
50
* variable in this class so it can later be queried.
51
*
52
* Derived classes are required to implement this method.
53
**/
54
virtual
void
call
() = 0;
55
};
56
57
58
#endif // YBuiltinCaller_h
YBuiltinCaller::call
virtual void call()=0
Call the built-in.
YBuiltinCaller
Abstract base class for transparently calling a built-in function.
Definition:
YBuiltinCaller.h:37
src
YBuiltinCaller.h
Generated by
1.8.13