haiku/headers/libs/print/libprint/AddPrinterDlg.h
Karsten Heimrich 12fd6cc2e7 * move libprint sources into libs, as it is a 3rdparty lib
* move libprint headers into libs headers folder accordingly
* merge all shared folders sources into kits print, we might build later on a
  real print kit, propably also to access cups from an nicely API, atm static
* move all shared headers into private print, also pr_server.h from interface
* adjust build to work with the changed folder layout



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26570 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-07-22 20:30:14 +00:00

58 lines
1.1 KiB
C++

/*
* AddPrinterDlg.cpp
* Copyright 1999-2000 Y.Takagi. All Rights Reserved.
*/
#include "DialogWindow.h"
#include <ListItem.h>
#include <View.h>
class BListView;
class BTextView;
class PrinterData;
class PrinterCap;
class ProtocolClassCap;
class ProtocolClassItem : public BStringItem {
public:
ProtocolClassItem(const ProtocolClassCap* cap);
int getProtocolClass();
const char *getDescription();
private:
const ProtocolClassCap *fProtocolClassCap;
};
class AddPrinterView : public BView {
public:
AddPrinterView(BRect frame, PrinterData *printer_data, const PrinterCap *printer_cap);
~AddPrinterView();
virtual void AttachedToWindow();
void FrameResized(float w, float h);
void MessageReceived(BMessage *msg);
void Save();
private:
ProtocolClassItem *CurrentSelection();
PrinterData *fPrinterData;
const PrinterCap *fPrinterCap;
BListView *fProtocolClassList;
BTextView *fDescription;
};
class AddPrinterDlg : public DialogWindow {
public:
AddPrinterDlg(PrinterData *printerData, const PrinterCap *printerCap);
void MessageReceived(BMessage *msg);
private:
AddPrinterView *fAddPrinterView;
};