Assorted whitespace cleanup and typo fixes.
[haiku.git] / src / preferences / printers / SpoolFolder.cpp
blob67498c8d7a81e3c211c01b60582599d55e87e654
1 /*
2 * Copyright 2001-2010, Haiku.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Michael Pfeiffer
7 */
10 #include "SpoolFolder.h"
12 #include "Jobs.h"
13 #include "PrintersWindow.h"
14 //#include "pr_server.h"
17 SpoolFolder::SpoolFolder(PrintersWindow* window, PrinterItem* item,
18 const BDirectory& spoolDir)
20 Folder(NULL, window, spoolDir),
21 fWindow(window),
22 fItem(item)
27 void
28 SpoolFolder::Notify(Job* job, int kind)
30 switch (kind) {
31 case kJobAdded:
32 fWindow->AddJob(this, job);
33 break;
34 case kJobRemoved:
35 fWindow->RemoveJob(this, job);
36 break;
37 case kJobAttrChanged:
38 fWindow->UpdateJob(this, job);
39 break;
40 default:
41 break;