vfs: check userland buffers before reading them.
[haiku.git] / headers / libs / print / libprint / UIDriver.h
blobf8961106dc878d526fe788858a9ac3935527e140
1 /*
2 * UIDriver.h
3 * Copyright 1999-2000 Y.Takagi. All Rights Reserved.
4 */
6 #ifndef __UIDRIVER_H
7 #define __UIDRIVER_H
10 class BMessage;
11 class PrinterData;
12 class PrinterCap;
13 class JobData;
16 class UIDriver {
17 public:
18 UIDriver(BMessage* message, PrinterData* printerData,
19 const PrinterCap* printerCap);
20 virtual ~UIDriver();
21 BMessage* ConfigPage();
22 BMessage* ConfigJob();
24 protected:
25 UIDriver(const UIDriver &);
27 UIDriver& operator=(const UIDriver &);
29 virtual status_t PageSetup(JobData* jobData, PrinterData* printerData,
30 const PrinterCap* printerCap);
31 virtual status_t JobSetup(JobData* jobData, PrinterData* printerData,
32 const PrinterCap* printerCap);
34 private:
35 BMessage* fMsg;
36 PrinterData* fPrinterData;
37 const PrinterCap* fPrinterCap;
40 #endif /* __UIDRIVER_H */