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
12 #include <Directory.h>
15 #include <Messenger.h>
18 #include <SupportDefs.h>
21 class PrintAddOnServer
24 PrintAddOnServer(const char* driver
);
25 virtual ~PrintAddOnServer();
27 status_t
AddPrinter(const char* spoolFolderName
);
28 status_t
ConfigPage(BDirectory
* spoolFolder
,
30 status_t
ConfigJob(BDirectory
* spoolFolder
,
32 status_t
DefaultSettings(BDirectory
* spoolFolder
,
34 status_t
TakeJob(const char* spoolFile
,
35 BDirectory
* spoolFolder
);
37 static status_t
FindPathToDriver(const char* driver
, BPath
* path
);
40 const char* Driver() const;
42 status_t
Launch(BMessenger
& messenger
);
46 void AddDirectory(BMessage
& message
, const char* name
,
47 BDirectory
* directory
);
48 void AddEntryRef(BMessage
& message
, const char* name
,
49 const entry_ref
* entryRef
);
50 status_t
SendRequest(BMessage
& request
, BMessage
& reply
);
51 status_t
GetResult(BMessage
& reply
);
52 status_t
GetResultAndUpdateSettings(BMessage
& reply
,
56 status_t fLaunchStatus
;
57 BMessenger fMessenger
;