summaryrefslogtreecommitdiff
path: root/src/Bus.h
blob: 74b0ad4caf739d342643c20c9d74a1a018602b7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef __PY_BUS_H_
#define __PY_BUS_H_

#include <ibus.h>
#include "Object.h"

namespace PY {

class Bus : Object {
public:
    Bus (void) : Object (ibus_bus_new ()) {
    }

    bool isConnected (void) {
        return ibus_bus_is_connected (*this);
    }

    operator IBusBus * (void) const {
        return get<IBusBus> ();
    }
};

};
#endif