2 * Copyright 2010 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
8 #ifndef PRINT_ADD_ON_SERVER_H
9 #define PRINT_ADD_ON_SERVER_H
11 #include <Application.h>
12 #include <Directory.h>
15 #include <SupportDefs.h>
17 #include <PrintAddOnServerProtocol.h>
20 class PrintAddOnServerApplication
: public BApplication
23 PrintAddOnServerApplication(const char* signature
);
24 void MessageReceived(BMessage
* message
);
27 void AddPrinter(BMessage
* message
);
28 status_t
AddPrinter(const char* driver
,
29 const char* spoolFolderName
);
31 void ConfigPage(BMessage
* message
);
32 status_t
ConfigPage(const char* driver
,
33 BDirectory
* spoolFolder
,
36 void ConfigJob(BMessage
* message
);
37 status_t
ConfigJob(const char* driver
,
38 BDirectory
* spoolFolder
,
41 void DefaultSettings(BMessage
* message
);
42 status_t
DefaultSettings(const char* driver
,
43 BDirectory
* spoolFolder
,
46 void TakeJob(BMessage
* message
);
47 status_t
TakeJob(const char* driver
,
48 const char* spoolFile
,
49 BDirectory
* spoolFolder
);
51 void SendReply(BMessage
* message
, status_t status
);
52 void SendReply(BMessage
* message
, BMessage
* reply
);