Thu, 15 Jan 2015 15:59:08 +0100
Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | #pragma once |
michael@0 | 6 | |
michael@0 | 7 | #include <string> |
michael@0 | 8 | |
michael@0 | 9 | #include "CC_Common.h" |
michael@0 | 10 | #include "ECC_Types.h" |
michael@0 | 11 | |
michael@0 | 12 | namespace CSF |
michael@0 | 13 | { |
michael@0 | 14 | DECLARE_NS_PTR_VECTOR(PhoneDetails); |
michael@0 | 15 | class ECC_API PhoneDetails |
michael@0 | 16 | { |
michael@0 | 17 | public: |
michael@0 | 18 | NS_INLINE_DECL_THREADSAFE_REFCOUNTING(PhoneDetails) |
michael@0 | 19 | virtual ~PhoneDetails() {} |
michael@0 | 20 | /** |
michael@0 | 21 | * Get the device name (the CUCM device name) and the free text description. |
michael@0 | 22 | */ |
michael@0 | 23 | virtual std::string getName() const = 0; |
michael@0 | 24 | virtual std::string getDescription() const = 0; |
michael@0 | 25 | |
michael@0 | 26 | /** |
michael@0 | 27 | * Get the model number (the internal CUCM number, not the number printed on the phone) |
michael@0 | 28 | * and the corresponding description (which normally does include the number printed on the phone). |
michael@0 | 29 | * Returns -1, "" if unknown |
michael@0 | 30 | */ |
michael@0 | 31 | virtual int getModel() const = 0; |
michael@0 | 32 | virtual std::string getModelDescription() const = 0; |
michael@0 | 33 | |
michael@0 | 34 | virtual bool isSoftPhone() = 0; |
michael@0 | 35 | |
michael@0 | 36 | /** |
michael@0 | 37 | * List the known directory numbers of lines associated with the device. |
michael@0 | 38 | * Empty list if unknown. |
michael@0 | 39 | */ |
michael@0 | 40 | virtual std::vector<std::string> getLineDNs() const = 0; |
michael@0 | 41 | |
michael@0 | 42 | /** |
michael@0 | 43 | * Current status of the device, if known. |
michael@0 | 44 | */ |
michael@0 | 45 | virtual ServiceStateType::ServiceState getServiceState() const = 0; |
michael@0 | 46 | |
michael@0 | 47 | /** |
michael@0 | 48 | * TFTP config of device, and freshness of the config. |
michael@0 | 49 | */ |
michael@0 | 50 | virtual std::string getConfig() const = 0; |
michael@0 | 51 | |
michael@0 | 52 | protected: |
michael@0 | 53 | PhoneDetails() {} |
michael@0 | 54 | |
michael@0 | 55 | private: |
michael@0 | 56 | PhoneDetails(const PhoneDetails&); |
michael@0 | 57 | PhoneDetails& operator=(const PhoneDetails&); |
michael@0 | 58 | }; |
michael@0 | 59 | }; |