vfs: check userland buffers before reading them.
[haiku.git] / src / servers / print_addon / PrintAddOnServerApplication.h
blobac51e4f0f8526adc7c7aaa1b333960a523f765de
1 /*
2 * Copyright 2010 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Michael Pfeiffer
7 */
8 #ifndef PRINT_ADD_ON_SERVER_H
9 #define PRINT_ADD_ON_SERVER_H
11 #include <Application.h>
12 #include <Directory.h>
13 #include <File.h>
14 #include <Message.h>
15 #include <SupportDefs.h>
17 #include <PrintAddOnServerProtocol.h>
20 class PrintAddOnServerApplication : public BApplication
22 public:
23 PrintAddOnServerApplication(const char* signature);
24 void MessageReceived(BMessage* message);
26 private:
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,
34 BMessage* settings);
36 void ConfigJob(BMessage* message);
37 status_t ConfigJob(const char* driver,
38 BDirectory* spoolFolder,
39 BMessage* settings);
41 void DefaultSettings(BMessage* message);
42 status_t DefaultSettings(const char* driver,
43 BDirectory* spoolFolder,
44 BMessage* settings);
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);
55 #endif