// File autogenerated

#if !defined(AGENT1INTERFACE_H_INCLUDED)
#define AGENT1INTERFACE_H_INCLUDED

// TQt includes
#include <tqmap.h>

// TQt D-Bus includes
#include <tqdbuserror.h>
#include <tqdbusmessage.h>
#include <tqdbusobject.h>

// forward declarations
class TQDomElement;
class TQString;
class TQT_DBusError;
class TQT_DBusObjectPath;

namespace org
{
namespace bluez
{
namespace obex
{

class Agent1Interface : public TQT_DBusObjectBase
{
public:
    virtual ~Agent1Interface() {}

    static void buildIntrospectionData(TQDomElement& interfaceElement);

    static const TQCString interface() { return TQCString("org.bluez.obex.Agent1"); }

public:
    virtual void ReleaseAsyncReply(int asyncCallId);

    virtual void ReleaseAsyncError(int asyncCallId, const TQT_DBusError& error);

    virtual void AuthorizePushAsyncReply(int asyncCallId, const TQString& filepath);

    virtual void AuthorizePushAsyncError(int asyncCallId, const TQT_DBusError& error);

    virtual void CancelAsyncReply(int asyncCallId);

    virtual void CancelAsyncError(int asyncCallId, const TQT_DBusError& error);

protected:
    virtual void ReleaseAsync(int asyncCallId) = 0;

    virtual void AuthorizePushAsync(int asyncCallId, const TQT_DBusObjectPath& transfer) = 0;

    virtual void CancelAsync(int asyncCallId) = 0;

protected: // implement sending replies
    virtual void handleMethodReply(const TQT_DBusMessage& reply) = 0;

protected: // usually no need to reimplement
    virtual bool handleMethodCall(const TQT_DBusMessage& message);

    void callReleaseAsync(const TQT_DBusMessage& message);

    void callAuthorizePushAsync(const TQT_DBusMessage& message);

    void callCancelAsync(const TQT_DBusMessage& message);

protected:
    TQMap<int, TQT_DBusMessage> m_asyncCalls;

}; // class Agent1Interface

}; // namespace obex

}; // namespace bluez

}; // namespace org

#endif //AGENT1INTERFACE_H_INCLUDED

// End of File

