summaryrefslogtreecommitdiff
path: root/cpp/include
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/include')
-rw-r--r--cpp/include/qmf/engine/Event.h17
-rw-r--r--cpp/include/qmf/engine/Schema.h4
-rw-r--r--cpp/include/qmf/engine/Value.h1
3 files changed, 21 insertions, 1 deletions
diff --git a/cpp/include/qmf/engine/Event.h b/cpp/include/qmf/engine/Event.h
index 50ab5c1200..4e5200a0a8 100644
--- a/cpp/include/qmf/engine/Event.h
+++ b/cpp/include/qmf/engine/Event.h
@@ -23,7 +23,24 @@
namespace qmf {
namespace engine {
+ class SchemaEventClass;
+ class Value;
+ struct EventImpl;
+
class Event {
+ public:
+ Event(const SchemaEventClass* type);
+ Event(const Event& from);
+ ~Event();
+
+ const SchemaEventClass* getClass() const;
+ Value* getValue(const char* key) const;
+
+ private:
+ friend struct EventImpl;
+ friend struct AgentImpl;
+ Event(EventImpl* impl);
+ EventImpl* impl;
};
}
}
diff --git a/cpp/include/qmf/engine/Schema.h b/cpp/include/qmf/engine/Schema.h
index 9f5b444558..f53e84324a 100644
--- a/cpp/include/qmf/engine/Schema.h
+++ b/cpp/include/qmf/engine/Schema.h
@@ -29,6 +29,7 @@ namespace engine {
enum Access { ACCESS_READ_CREATE = 1, ACCESS_READ_WRITE = 2, ACCESS_READ_ONLY = 3 };
enum Direction { DIR_IN = 1, DIR_OUT = 2, DIR_IN_OUT = 3 };
enum ClassKind { CLASS_OBJECT = 1, CLASS_EVENT = 2 };
+ enum Severity { SEV_EMERG = 0, SEV_ALERT = 1, SEV_CRIT = 2, SEV_ERROR = 3, SEV_WARN = 4, SEV_NOTICE = 5, SEV_INFORM = 6, SEV_DEBUG = 7 };
struct SchemaArgumentImpl;
struct SchemaMethodImpl;
@@ -186,13 +187,14 @@ namespace engine {
*/
class SchemaEventClass {
public:
- SchemaEventClass(const char* package, const char* name);
+ SchemaEventClass(const char* package, const char* name, Severity severity);
SchemaEventClass(const SchemaEventClass& from);
~SchemaEventClass();
void addArgument(const SchemaArgument* argument);
void setDesc(const char* desc);
const SchemaClassKey* getClassKey() const;
+ Severity getSeverity() const;
int getArgumentCount() const;
const SchemaArgument* getArgument(int idx) const;
diff --git a/cpp/include/qmf/engine/Value.h b/cpp/include/qmf/engine/Value.h
index 8eae382caf..5b45061b78 100644
--- a/cpp/include/qmf/engine/Value.h
+++ b/cpp/include/qmf/engine/Value.h
@@ -110,6 +110,7 @@ namespace engine {
friend struct ValueImpl;
friend class BrokerProxyImpl;
friend struct ObjectImpl;
+ friend struct EventImpl;
friend class AgentImpl;
Value(ValueImpl* impl);
ValueImpl* impl;