ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/truck/DashInterface/Display.hpp
(Generate patch)

Comparing SteeringWheelRemote/Audacious.hpp (file contents):
Revision 6 by douglas, 2007-05-06T21:04:16-07:00 vs.
Revision 7 by douglas, 2007-05-06T22:12:04-07:00

# Line 21 | Line 21 | public:
21          Audacious(int session = 0) : session(session) {}
22  
23          template <typename Type_>
24 <        void Playlist(const Type_ &list, bool enqueue = false)
24 >        inline void Playlist(const Type_ &list, bool enqueue = false)
25          {
26                  char **list_(NULL);
27                  int size(0);
# Line 42 | Line 42 | public:
42          int GetVersion() const;
43  
44          template <typename Type_>
45 <        void PlaylistAdd(const Type_ &list)
45 >        inline void PlaylistAdd(const Type_ &list)
46          {
47                  ::GList *list_(NULL);
48  
# Line 66 | Line 66 | public:
66          void PlaylistClear();
67          int GetOutputTime() const;
68          void JumpToTime(int position);
69 <        int GetVolume(int &left, int &right) const;
69 >        void GetVolume(int &left, int &right) const;
70          int GetMainVolume() const;
71          int GetBalance() const;
72          void SetVolume(int left, int right);
73          void SetMainVolume(int volume);
74          void SetBalance(int balance);
75          std::string GetSkin() const;
76 <        void SetSkin(std::string &skin);
76 >        void SetSkin(const std::string &skin);
77          std::string GetPlaylistFile(int position) const;
78          std::string GetPlaylistTitle(int position) const;
79          int GetPlaylistTime(int position) const;
# Line 125 | Line 125 | public:
125          // XMMS 1.2.11
126          void PlayqueueAdd(int position);
127          void PlayqueueRemove(int position);
128 <        int GetPlayqueueLength(int session) const;
128 >        int GetPlayqueueLength() const;
129          void ToggleAdvance();
130 <        bool IsAdvance();
130 >        bool IsAdvance() const;
131  
132          inline void ToggleAdvance(bool advance)
133          {
# Line 159 | Line 159 | public:
159   };
160  
161   template <>
162 < void Audacious::PlaylistAdd(const std::string &item);
162 > inline void Audacious::PlaylistAdd(const std::string &item)
163 > {
164 >        ::GList list = { const_cast<char *>(item.c_str()), NULL, NULL };
165 >
166 >        PlaylistAdd(&list);
167 > }
168  
169   #endif//_Audacious_hpp_

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines