C++ implementation of the common print dialog DBus api
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
client
server
.clang_complete
.gitignore
Makefile
README.org
common-lib
org.openprinting.PrintBackend.doc.xml
org.openprinting.PrintBackend.xml
org.openprinting.PrintFrontend.doc.xml
org.openprinting.PrintFrontend.xml

README.org

Compilation

$ make

Running

On one terminal

$ server-prog

On another terminal

$ client-prog

The running processes and ther interface can be analysed using d-feet

Print Frontend

Signals

GetBackends

Sends a DBus signal GetBackends to all listening backends so that they might reply and be registered.

Print Backend

Methods

GetPrinterOptions(in ‘s’ uid, out ‘v’ options)

Get Options for printer uniquely identified by uid

StopListing()

Deregister a frontend from backend

Printfile(in ‘s’ uid, in ‘h’ fd)

Print file identified by file descriptor fd to printer uid

Signals

RegisterBackend(’s’ pong)

Signal sent to frontend as acknowledgement.

UpdatePrinter(’s’ uid, ‘s’ name, ‘v’ options)

Update information for printer uniquely identified by uid with display name name and some initial settings options

DeletePrinter(’s’ uid)

Remove printer uniquely identified by uid by this backend.

Printer Information on Frontend

On the frontend, all printers can have a primary identifier as the tuple (backend, uid in that backend)