File: printerqueueswrapper.h

package info (click to toggle)
photoprint 0.3.8b-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,396 kB
  • ctags: 3,472
  • sloc: cpp: 25,818; sh: 9,132; ansic: 4,778; makefile: 491; sed: 16
file content (40 lines) | stat: -rw-r--r-- 766 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef PRINTERQUEUES_WRAPPER_H
#define PRINTERQUEUES_WRAPPER_H

#include "stp_support/printerqueues.h"

class PrinterQueues
{
	public:
	PrinterQueues();
	~PrinterQueues();
	int GetPrinterCount();
	char *GetPrinterName(int idx);
	char *GetPrinterDriver(const char *printername);
	char *GetPrinterDriver();

	const char *GetPrinterQueue();
	void SetPrinterQueue(const char *queue);
	bool PrinterQueueExists(const char *queue);

	char *GetDriver();
	char *GetPPD();

	const char *GetCustomCommand();
	void SetCustomCommand(const char *cmd);

	bool InitialiseJob();
	void InitialisePage();
	void EndPage();
	void EndJob();
	void CancelJob();

	int WriteData(const char *data,int bytecount);

	struct pqinfo *GetPQInfo();

	protected:
	struct pqinfo *queues;
};

#endif