haiku/headers/private/print/PrintAddOnServerProtocol.h
Michael Pfeiffer 9b07d9f0fe * Renamed files, classes and constants from
PrintServerAddOn to PrintAddOnServer.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39358 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-08 18:43:55 +00:00

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