| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROMEOS_PRINTING_PRINTER_CONFIGURATION_H_ | 5 #ifndef CHROMEOS_PRINTING_PRINTER_CONFIGURATION_H_ |
| 6 #define CHROMEOS_PRINTING_PRINTER_CONFIGURATION_H_ | 6 #define CHROMEOS_PRINTING_PRINTER_CONFIGURATION_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 // Otherwise, the file was saved to disk by the user. | 31 // Otherwise, the file was saved to disk by the user. |
| 32 bool from_quirks_server = false; | 32 bool from_quirks_server = false; |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 // Constructs a printer object that is completely empty. | 35 // Constructs a printer object that is completely empty. |
| 36 Printer(); | 36 Printer(); |
| 37 | 37 |
| 38 // Constructs a printer object with an id. | 38 // Constructs a printer object with an id. |
| 39 explicit Printer(const std::string& id); | 39 explicit Printer(const std::string& id); |
| 40 | 40 |
| 41 // Copy constructor and assignment. |
| 42 explicit Printer(const Printer& printer); |
| 43 Printer& operator=(const Printer& printer); |
| 44 |
| 41 ~Printer(); | 45 ~Printer(); |
| 42 | 46 |
| 43 const std::string& id() const { return id_; } | 47 const std::string& id() const { return id_; } |
| 44 void set_id(const std::string& id) { id_ = id; } | 48 void set_id(const std::string& id) { id_ = id; } |
| 45 | 49 |
| 46 const std::string& display_name() const { return display_name_; } | 50 const std::string& display_name() const { return display_name_; } |
| 47 void set_display_name(const std::string& display_name) { | 51 void set_display_name(const std::string& display_name) { |
| 48 display_name_ = display_name; | 52 display_name_ = display_name; |
| 49 } | 53 } |
| 50 | 54 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 | 92 |
| 89 // The full path for the printer. Suitable for configuration in CUPS. | 93 // The full path for the printer. Suitable for configuration in CUPS. |
| 90 // Contains protocol, hostname, port, and queue. | 94 // Contains protocol, hostname, port, and queue. |
| 91 std::string uri_; | 95 std::string uri_; |
| 92 | 96 |
| 93 // The associated postscript printer description. | 97 // The associated postscript printer description. |
| 94 PPDFile ppd_; | 98 PPDFile ppd_; |
| 95 | 99 |
| 96 // The UUID from an autoconf protocol for deduplication. Could be empty. | 100 // The UUID from an autoconf protocol for deduplication. Could be empty. |
| 97 std::string uuid_; | 101 std::string uuid_; |
| 98 | |
| 99 DISALLOW_COPY_AND_ASSIGN(Printer); | |
| 100 }; | 102 }; |
| 101 | 103 |
| 102 } // namespace chromeos | 104 } // namespace chromeos |
| 103 | 105 |
| 104 #endif // CHROMEOS_PRINTING_PRINTER_CONFIGURATION_H_ | 106 #endif // CHROMEOS_PRINTING_PRINTER_CONFIGURATION_H_ |
| OLD | NEW |