blob: a4fd72c32bcb149970f981b79e75c7a19bd56c11 [file] [log] [blame]
Tomasz Wasilczyk48377552017-06-22 10:45:33 -07001/*
2 * Copyright (C) 2017 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16#ifndef ANDROID_HARDWARE_BROADCASTRADIO_V1_1_VIRTUALPROGRAM_H
17#define ANDROID_HARDWARE_BROADCASTRADIO_V1_1_VIRTUALPROGRAM_H
18
Tomasz Wasilczyk100f2ed2017-06-29 16:04:05 -070019#include <android/hardware/broadcastradio/1.1/types.h>
Tomasz Wasilczyk48377552017-06-22 10:45:33 -070020#include <cstdint>
21
22namespace android {
23namespace hardware {
24namespace broadcastradio {
25namespace V1_1 {
26namespace implementation {
27
28struct VirtualProgram {
Tomasz Wasilczyka02b6ef2017-07-05 11:23:30 -070029 ProgramSelector selector;
Tomasz Wasilczyk48377552017-06-22 10:45:33 -070030
Tomasz Wasilczyk100f2ed2017-06-29 16:04:05 -070031 std::string programName = "";
32 std::string songArtist = "";
33 std::string songTitle = "";
34
35 explicit operator ProgramInfo() const;
Tomasz Wasilczyk48377552017-06-22 10:45:33 -070036 friend bool operator<(const VirtualProgram& lhs, const VirtualProgram& rhs);
37};
38
39} // namespace implementation
40} // namespace V1_1
41} // namespace broadcastradio
42} // namespace hardware
43} // namespace android
44
45#endif // ANDROID_HARDWARE_BROADCASTRADIO_V1_1_VIRTUALPROGRAM_H