1 //
2 //  Copyright (C) 2017 Google, Inc.
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 
17 #pragma once
18 
19 #include <string>
20 
21 namespace bluetooth {
22 
23 class AvrcpMediaAttr {
24  public:
25   AvrcpMediaAttr();
26   AvrcpMediaAttr(const AvrcpMediaAttr& other);
27   AvrcpMediaAttr(const std::string& title, const std::string& artist,
28                  const std::string& album, const std::string& genre,
29                  int track_num, int num_tracks, int play_time);
30   ~AvrcpMediaAttr();
31 
title()32   const std::string& title() const { return title_; }
artist()33   const std::string& artist() const { return artist_; }
album()34   const std::string& album() const { return album_; }
genre()35   const std::string& genre() const { return genre_; }
track_num()36   int track_num() const { return track_num_; }
num_tracks()37   int num_tracks() const { return num_tracks_; }
play_time()38   int play_time() const { return play_time_; }
39 
40  protected:
41   std::string title_;
42   std::string artist_;
43   std::string album_;
44   std::string genre_;
45   int track_num_ = -1;
46   int num_tracks_ = -1;
47   int play_time_ = -1;
48 };
49 
50 }  // namespace bluetooth
51