Logo Search packages:      
Sourcecode: pathfinder version File versions  Download package

wvdbuswatch.h

/* -*- Mode: C++ -*-
 * Worldvisions Weaver Software:
 *   Copyright (C) 2004-2006 Net Integration Technologies, Inc.
 * 
 * Pathfinder Software:
 *   Copyright (C) 2007, Carillon Information Security Inc.
 *
 * This library is licensed under the LGPL, please read LICENSE for details.
 * 
 * An abstraction on the DBusWatch abstraction, intended to allow hooking
 * D-Bus into the WvStreams mainloop. By no means should you need to use
 * this in application-level code-- it is intended only for WvDBus's internal
 * use.
 * 
 * 
 */

#ifndef __WVDBUSWATCH_H
#define __WVDBUSWATCH_H
#include "wvfdstream.h"
#include "wvlog.h"
#include <dbus/dbus.h>


class WvDBusWatch : public WvFdStream
{
public:
    WvDBusWatch(DBusWatch *_watch, unsigned int _flags);
    virtual void execute();
    // disable reading/writing: we want dbus to do that for us
    virtual size_t uread(void *buf, size_t count) { return 0; }
    virtual size_t uwrite(const void *buf, size_t count) { return 0; }
    virtual void pre_select(SelectInfo &si);
    DBusWatch *watch;
};

#endif // __WVDBUSWATCH_H

Generated by  Doxygen 1.6.0   Back to index