mirror of
https://review.haiku-os.org/haiku
synced 2025-01-23 23:04:48 +01:00
49 lines
1.0 KiB
C
49 lines
1.0 KiB
C
|
/*
|
||
|
* Copyright 2001-2010, Haiku, Inc. All rights reserved.
|
||
|
* Distributed under the terms of the MIT License.
|
||
|
*
|
||
|
* Authors:
|
||
|
* Ithamar R. Adema
|
||
|
* Michael Pfeiffer
|
||
|
*/
|
||
|
#ifndef PRINTER_DRIVER_ADD_ON_H
|
||
|
#define PRINTER_DRIVER_ADD_ON_H
|
||
|
|
||
|
|
||
|
#include <Directory.h>
|
||
|
#include <File.h>
|
||
|
#include <image.h>
|
||
|
#include <Message.h>
|
||
|
#include <Path.h>
|
||
|
#include <SupportDefs.h>
|
||
|
|
||
|
|
||
|
class PrinterDriverAddOn
|
||
|
{
|
||
|
public:
|
||
|
PrinterDriverAddOn(const char* driver);
|
||
|
~PrinterDriverAddOn();
|
||
|
|
||
|
status_t AddPrinter(const char* spoolFolderName);
|
||
|
status_t ConfigPage(BDirectory* spoolFolder,
|
||
|
BMessage* settings);
|
||
|
status_t ConfigJob(BDirectory* spoolFolder,
|
||
|
BMessage* settings);
|
||
|
status_t DefaultSettings(BDirectory* spoolFolder,
|
||
|
BMessage* settings);
|
||
|
status_t TakeJob(BFile* spoolFile,
|
||
|
BDirectory* spoolFolder);
|
||
|
|
||
|
static status_t FindPathToDriver(const char* driver, BPath* path);
|
||
|
|
||
|
private:
|
||
|
bool IsLoaded() const;
|
||
|
status_t CopyValidSettings(BMessage* settings,
|
||
|
BMessage* newSettings);
|
||
|
|
||
|
image_id fAddOnID;
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif
|