OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef GCP20_PROTOTYPE_PRINTER_H_ | |
6 #define GCP20_PROTOTYPE_PRINTER_H_ | |
7 | |
8 #include "cloud_print/gcp20/prototype/dns_sd_server.h" | |
9 #include "cloud_print/gcp20/prototype/privet_dns_response_builder.h" | |
10 | |
11 // This class will maintain work of DNS-SD server, HTTP server and others. | |
12 class Printer { | |
13 public: | |
14 // Constructs uninitialized object. | |
15 Printer(); | |
16 | |
17 // Destroys the object. | |
18 ~Printer(); | |
19 | |
20 // Starts all servers. | |
21 bool Start(); | |
22 | |
23 // Stops all servers. | |
24 void Stop(); | |
25 | |
26 private: | |
27 // Contains |true| if initialized. | |
28 bool initialized_; | |
29 | |
30 // Contains DNS-SD server. | |
31 DnsSdServer dns_server_; | |
32 }; | |
gene
2013/06/15 02:13:23
dissallow copy constructor macro here?
maksymb
2013/06/18 01:14:48
Done.
| |
33 | |
34 #endif // GCP20_PROTOTYPE_PRINTER_H_ | |
35 | |
OLD | NEW |