Hi I'm currently developing a small tcp based notification server using the "org.freedesktop.Notifications.Notify" dbus binding and everything works fine on my Kubuntu, I even got the callbacks working with qdbus(I don't want to use libnotify because there are too many gtk depenecys).
The current problem is that I don't know how to sent the a notification image over qdbus.
on http://www.galago-project.org/specs/.../0.9/x207.html
the image is defined as
The icon_data field should be a raw image data structure of signature (iiibiiay) which describes the width, height, rowstride, has alpha, bits per sample, channels and image data respectively.
and here is an except from dbus-monitor of a working notification
array [
dict entry(
string "icon_data"
variant struct {
int32 50
int32 50
int32 200
boolean true
int32 8
int32 4
array [
byte 255
byte 32
byte 57
byte 93
byte 255
byte 32
byte 57
byte 93
byte 255
byte 32
.......
]
}
)
]
array [
dict entry(
string "icon_data"
variant struct {
int32 50
int32 50
int32 200
boolean true
int32 8
int32 4
array [
byte 255
byte 32
byte 57
byte 93
byte 255
byte 32
byte 57
byte 93
byte 255
byte 32
.......
]
}
)
]
To copy to clipboard, switch view to plain text mode
The image defined above should be part of a QVariantMap.
Problematic is how to get bits per sample and channels and finally how to sent these data over dbus.
Regards
TheOneRing
Bookmarks