Vitaly Buka | 4615e0d | 2015-10-14 15:35:12 -0700 | [diff] [blame] | 1 | // Copyright 2015 The Weave Authors. All rights reserved. |
Alex Vakulenko | eedf3be | 2015-05-13 17:52:02 -0700 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
Vitaly Buka | 912b698 | 2015-07-06 11:13:03 -0700 | [diff] [blame] | 5 | #ifndef LIBWEAVE_SRC_NOTIFICATION_NOTIFICATION_CHANNEL_H_ |
| 6 | #define LIBWEAVE_SRC_NOTIFICATION_NOTIFICATION_CHANNEL_H_ |
Alex Vakulenko | eedf3be | 2015-05-13 17:52:02 -0700 | [diff] [blame] | 7 | |
| 8 | #include <string> |
| 9 | |
| 10 | namespace base { |
| 11 | class DictionaryValue; |
| 12 | } // namespace base |
| 13 | |
Vitaly Buka | b6f015a | 2015-07-09 14:59:23 -0700 | [diff] [blame] | 14 | namespace weave { |
Alex Vakulenko | eedf3be | 2015-05-13 17:52:02 -0700 | [diff] [blame] | 15 | |
| 16 | class NotificationDelegate; |
| 17 | |
| 18 | class NotificationChannel { |
| 19 | public: |
Vitaly Buka | 3bfb13d | 2015-11-24 14:46:13 -0800 | [diff] [blame] | 20 | virtual ~NotificationChannel() {} |
Alex Vakulenko | eedf3be | 2015-05-13 17:52:02 -0700 | [diff] [blame] | 21 | |
| 22 | virtual std::string GetName() const = 0; |
Alex Vakulenko | 6b028ae | 2015-05-29 09:38:59 -0700 | [diff] [blame] | 23 | virtual bool IsConnected() const = 0; |
Alex Vakulenko | eedf3be | 2015-05-13 17:52:02 -0700 | [diff] [blame] | 24 | virtual void AddChannelParameters(base::DictionaryValue* channel_json) = 0; |
| 25 | |
| 26 | virtual void Start(NotificationDelegate* delegate) = 0; |
| 27 | virtual void Stop() = 0; |
| 28 | }; |
| 29 | |
Vitaly Buka | b6f015a | 2015-07-09 14:59:23 -0700 | [diff] [blame] | 30 | } // namespace weave |
Alex Vakulenko | eedf3be | 2015-05-13 17:52:02 -0700 | [diff] [blame] | 31 | |
Vitaly Buka | 912b698 | 2015-07-06 11:13:03 -0700 | [diff] [blame] | 32 | #endif // LIBWEAVE_SRC_NOTIFICATION_NOTIFICATION_CHANNEL_H_ |