summaryrefslogtreecommitdiffstats
path: root/cloud_print/gcp20/prototype/local_settings.h
blob: b2ec58f909a1f183eb031c99b61466cdc8bb804b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CLOUD_PRINT_GCP20_PROTOTYPE_LOCAL_SETTINGS_H_
#define CLOUD_PRINT_GCP20_PROTOTYPE_LOCAL_SETTINGS_H_

// Contains local settings.
struct LocalSettings {
  enum State {
    CURRENT,
    PENDING,
    PRINTER_DELETED,
  };

  LocalSettings()
      : local_discovery(true),
        access_token_enabled(false),
        local_printing_enabled(false),
        xmpp_timeout_value(300) {
  }
  ~LocalSettings() {}

  bool local_discovery;
  bool access_token_enabled;
  bool local_printing_enabled;
  int xmpp_timeout_value;
};

#endif  // CLOUD_PRINT_GCP20_PROTOTYPE_LOCAL_SETTINGS_H_