Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 #ifndef CHROMEOS_PRINTING_PRINTER_CONFIG_H_ | |
| 2 #define CHROMEOS_PRINTING_PRINTER_CONFIG_H_ | |
| 3 | |
| 4 namespace chromeos { | |
| 5 | |
| 6 // Represents a Postscript Printer Description with which the printer was setup. | |
| 7 struct PPDFile { | |
| 8 // Identifier from the quirks server. -1 otherwise. | |
| 9 int id; | |
| 10 | |
| 11 std::string file_name; | |
| 12 | |
| 13 // If there is a file with a later version on the quirks server, that file | |
| 14 // should be used. The default value is 0. | |
| 15 int version_number; | |
| 16 | |
| 17 // This will be true if the file was retrived from the quirks server. | |
| 18 // Otherwise, the file was saved to disk by the user. | |
| 19 bool from_quirks_server; | |
| 20 } | |
| 21 | |
| 22 struct Printer { | |
| 23 // Globally unique identifier. Empty indicates a new printer. | |
| 24 std::string id; | |
|
xdai1
2016/07/19 19:09:43
Compared with PrinterBasicInfo (https://cs.chromiu
skau
2016/07/28 20:07:15
Description has been added. Status will come from
| |
| 25 | |
| 26 // The manufacturer of the printer. e.g. HP | |
| 27 std::string manufacturer; | |
| 28 | |
| 29 // The model of the printer. e.g. OfficeJet 415 | |
| 30 std::string model; | |
| 31 | |
| 32 // The full path for the printer. Suitable for configuration in CUPS. | |
| 33 // Contains protocol, hostname, port, and queue. | |
| 34 std::string uri; | |
| 35 | |
| 36 // The associated postscript printer description. | |
| 37 PPDFile ppd; | |
| 38 } | |
| 39 | |
| 40 } // namespace chromeos | |
| 41 | |
| 42 #endif // CHROMEOS_PRINTING_PRINTER_CONFIG_H_ | |
| OLD | NEW |