2010-11-07 20:13:55 +03:00
|
|
|
/*
|
|
|
|
* Copyright 2010 Haiku, Inc. All rights reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Michael Pfeiffer
|
|
|
|
*/
|
2010-11-08 21:43:55 +03:00
|
|
|
#ifndef PRINT_ADD_ON_SERVER_PROTOCOL_H
|
|
|
|
#define PRINT_ADD_ON_SERVER_PROTOCOL_H
|
2010-11-07 20:13:55 +03:00
|
|
|
|
2010-11-08 21:43:55 +03:00
|
|
|
extern const char* kPrintAddOnServerApplicationSignature;
|
2010-11-07 20:13:55 +03:00
|
|
|
|
2010-11-08 21:43:55 +03:00
|
|
|
extern const char* kPrintAddOnServerStatusAttribute;
|
2010-11-07 20:13:55 +03:00
|
|
|
extern const char* kPrinterDriverAttribute;
|
|
|
|
extern const char* kPrinterNameAttribute;
|
|
|
|
extern const char* kPrinterFolderAttribute;
|
|
|
|
extern const char* kPrintJobFileAttribute;
|
|
|
|
extern const char* kPrintSettingsAttribute;
|
|
|
|
|
|
|
|
enum {
|
|
|
|
// message constants for the five corresponding
|
|
|
|
// printer driver add-on hook functions
|
|
|
|
kMessageAddPrinter = 'PSad',
|
|
|
|
// Request:
|
|
|
|
// BString kPrinterDriverAttribute
|
|
|
|
// BString kPrinterNameAttribute
|
|
|
|
// Reply:
|
2010-11-08 21:43:55 +03:00
|
|
|
// int32 kPrintAddOnServerStatusAttribute
|
2010-11-07 20:13:55 +03:00
|
|
|
|
|
|
|
kMessageConfigPage = 'PScp',
|
|
|
|
// Request:
|
|
|
|
// BString kPrinterDriverAttribute
|
|
|
|
// BString kPrinterFolderAttribute
|
|
|
|
// BMessage kPrintSettingsAttribute
|
|
|
|
// Reply:
|
2010-11-08 21:43:55 +03:00
|
|
|
// int32 kPrintAddOnServerStatusAttribute
|
2010-11-07 20:13:55 +03:00
|
|
|
// BMessage kPrintSettingsAttribute (if status is B_OK)
|
|
|
|
|
|
|
|
kMessageConfigJob = 'PScj',
|
|
|
|
// Request:
|
|
|
|
// BString kPrinterDriverAttribute
|
|
|
|
// BString kPrinterFolderAttribute
|
|
|
|
// BMessage kPrintSettingsAttribute
|
|
|
|
// Reply:
|
2010-11-08 21:43:55 +03:00
|
|
|
// int32 kPrintAddOnServerStatusAttribute
|
2010-11-07 20:13:55 +03:00
|
|
|
// BMessage kPrintSettingsAttribute (if status is B_OK)
|
|
|
|
|
|
|
|
kMessageDefaultSettings = 'PSds',
|
|
|
|
// Request:
|
|
|
|
// BString kPrinterDriverAttribute
|
|
|
|
// BString kPrinterFolderAttribute
|
|
|
|
// Reply:
|
2010-11-08 21:43:55 +03:00
|
|
|
// int32 kPrintAddOnServerStatusAttribute
|
2010-11-07 20:13:55 +03:00
|
|
|
// BMessage kPrintSettingsAttribute (if status is B_OK)
|
|
|
|
|
|
|
|
kMessageTakeJob = 'PStj',
|
|
|
|
// Request:
|
|
|
|
// BString kPrinterDriverAttribute
|
|
|
|
// BString kPrintJobFileAttribute
|
|
|
|
// BString kPrinterFolderAttribute
|
|
|
|
// Reply:
|
2010-11-08 21:43:55 +03:00
|
|
|
// int32 kPrintAddOnServerStatusAttribute
|
2010-11-07 20:13:55 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|