9b07d9f0fe
PrintServerAddOn to PrintAddOnServer. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39358 a95241bf-73f2-0310-859d-f6bbb57e9c96
66 lines
1.8 KiB
C
66 lines
1.8 KiB
C
/*
|
|
* Copyright 2010 Haiku, Inc. All rights reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*
|
|
* Authors:
|
|
* Michael Pfeiffer
|
|
*/
|
|
#ifndef PRINT_ADD_ON_SERVER_PROTOCOL_H
|
|
#define PRINT_ADD_ON_SERVER_PROTOCOL_H
|
|
|
|
extern const char* kPrintAddOnServerApplicationSignature;
|
|
|
|
extern const char* kPrintAddOnServerStatusAttribute;
|
|
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:
|
|
// int32 kPrintAddOnServerStatusAttribute
|
|
|
|
kMessageConfigPage = 'PScp',
|
|
// Request:
|
|
// BString kPrinterDriverAttribute
|
|
// BString kPrinterFolderAttribute
|
|
// BMessage kPrintSettingsAttribute
|
|
// Reply:
|
|
// int32 kPrintAddOnServerStatusAttribute
|
|
// BMessage kPrintSettingsAttribute (if status is B_OK)
|
|
|
|
kMessageConfigJob = 'PScj',
|
|
// Request:
|
|
// BString kPrinterDriverAttribute
|
|
// BString kPrinterFolderAttribute
|
|
// BMessage kPrintSettingsAttribute
|
|
// Reply:
|
|
// int32 kPrintAddOnServerStatusAttribute
|
|
// BMessage kPrintSettingsAttribute (if status is B_OK)
|
|
|
|
kMessageDefaultSettings = 'PSds',
|
|
// Request:
|
|
// BString kPrinterDriverAttribute
|
|
// BString kPrinterFolderAttribute
|
|
// Reply:
|
|
// int32 kPrintAddOnServerStatusAttribute
|
|
// BMessage kPrintSettingsAttribute (if status is B_OK)
|
|
|
|
kMessageTakeJob = 'PStj',
|
|
// Request:
|
|
// BString kPrinterDriverAttribute
|
|
// BString kPrintJobFileAttribute
|
|
// BString kPrinterFolderAttribute
|
|
// Reply:
|
|
// int32 kPrintAddOnServerStatusAttribute
|
|
};
|
|
|
|
#endif
|