qmf/AgentEvent.h Source File

Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET | Apache Qpid Documentation

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

qmf/AgentEvent.h
Go to the documentation of this file.

    00001 #ifndef QMF_AGENT_EVENT_H
    00002 #define QMF_AGENT_EVENT_H
    00003 /*
    00004  *
    00005  * Licensed to the Apache Software Foundation (ASF) under one
    00006  * or more contributor license agreements.  See the NOTICE file
    00007  * distributed with this work for additional information
    00008  * regarding copyright ownership.  The ASF licenses this file
    00009  * to you under the Apache License, Version 2.0 (the
    00010  * "License"); you may not use this file except in compliance
    00011  * with the License.  You may obtain a copy of the License at
    00012  *
    00013  *   http://www.apache.org/licenses/LICENSE-2.0
    00014  *
    00015  * Unless required by applicable law or agreed to in writing,
    00016  * software distributed under the License is distributed on an
    00017  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    00018  * KIND, either express or implied.  See the License for the
    00019  * specific language governing permissions and limitations
    00020  * under the License.
    00021  *
    00022  */
    00023
    00024 #include <qmf/ImportExport.h>
    00025 #include "qmf/Handle.h"
    00026 #include "qpid/types/Variant.h"
    00027
    00028 namespace qmf {
    00029
    00030 #ifndef SWIG
    00031     template <class> class PrivateImplRef;
    00032 #endif
    00033
    00034     class AgentEventImpl;
    00035     class Query;
    00036     class DataAddr;
    00037
    00038     enum AgentEventCode {
    00039     AGENT_AUTH_QUERY      = 1,
    00040     AGENT_AUTH_SUBSCRIBE  = 2,
    00041     AGENT_QUERY           = 3,
    00042     AGENT_METHOD          = 4,
    00043     AGENT_SUBSCRIBE_BEGIN = 5,
    00044     AGENT_SUBSCRIBE_TOUCH = 6,
    00045     AGENT_SUBSCRIBE_END   = 7,
    00046     AGENT_THREAD_FAILED   = 8
    00047     };
    00048
    00049     class QMF_CLASS_EXTERN AgentEvent : public qmf::Handle<AgentEventImpl> {
    00050     public:
    00051         QMF_EXTERN AgentEvent(AgentEventImpl* impl = 0);
    00052         QMF_EXTERN AgentEvent(const AgentEvent&);
    00053         QMF_EXTERN AgentEvent& operator=(const AgentEvent&);
    00054         QMF_EXTERN ~AgentEvent();
    00055
    00056         QMF_EXTERN AgentEventCode getType() const;
    00057         QMF_EXTERN const std::string& getUserId() const;
    00058         QMF_EXTERN Query getQuery() const;
    00059         QMF_EXTERN bool hasDataAddr() const;
    00060         QMF_EXTERN DataAddr getDataAddr() const;
    00061         QMF_EXTERN const std::string& getMethodName() const;
    00062         QMF_EXTERN qpid::types::Variant::Map& getArguments();
    00063         QMF_EXTERN qpid::types::Variant::Map& getArgumentSubtypes();
    00064         QMF_EXTERN void addReturnArgument(const std::string&, const qpid::types::Variant&, const std::string& st="");
    00065
    00066 #ifndef SWIG
    00067     private:
    00068         friend class qmf::PrivateImplRef<AgentEvent>;
    00069         friend struct AgentEventImplAccess;
    00070 #endif
    00071     };
    00072 }
    00073
    00074 #endif