]> git.llucax.com Git - software/bife/bife++.git/blob - libbife/fallback.h
Added a typeid() demangle example.
[software/bife/bife++.git] / libbife / fallback.h
1 // vim: set expandtab tabstop=4 shiftwidth=4:
2
3 #ifndef BIFE_FALLBACK_H
4 #define BIFE_FALLBACK_H
5
6 #include "container.h"
7 #include "widget.h"
8 #include "hit.h"
9 #include "hash.h"
10 #include <vector>
11 #include <string>
12
13 namespace bife {
14
15     using std::string;
16
17     /**
18      * Base Fallback Widget.
19      *
20      * @todo 
21      */
22     class Fallback: public Container {
23         // Typedefs
24         public:
25             /// Fallback constructor function prototype.
26             //typedef Fallback* Constructor(const string&, const string&, const Hash&);
27
28         // Attributes.
29         public:
30             /// Root widget.
31             string name;
32
33         // Methods.
34         public:
35             /**
36              * Constructor.
37              *
38              * @param name    Name of the widget.
39              */
40             Fallback(void);
41
42             /**
43              * Constructor.
44              *
45              * @param name    Name of the widget.
46              * @param attrs   Widget attributes.
47              */
48             Fallback(const Hash&);
49
50             /**
51              * Constructor.
52              *
53              * @param name    Name of the widget.
54              * @param attrs   Widget attributes.
55              * @param content Content of the widget.
56              */
57             Fallback(const Hash&, Widget*);
58
59             /**
60              * Constructor.
61              *
62              * @param name    Name of the widget.
63              * @param content Content of the widget.
64              */
65             //Fallback(Widget*);
66
67             /**
68              * Constructor.
69              *
70              * @param name    Name of the widget.
71              * @param content Content of the widget.
72              * @param attrs   Widget attributes.
73              */
74             Fallback(Widget*, const Hash&);
75
76             /**
77              * Destructor.
78              */
79             virtual ~Fallback(void);
80     };
81
82 }
83
84 #endif