-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSpotifyController.h
More file actions
40 lines (32 loc) · 876 Bytes
/
SpotifyController.h
File metadata and controls
40 lines (32 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//
// SpotifyController.h
// FireBreath
//
// Created by Dany Joumaa on 8/25/12.
//
//
#ifndef FireBreath_SpotifyController_h
#define FireBreath_SpotifyController_h
#include <boost/shared_ptr.hpp>
#include <stdexcept>
struct ControllerContext;
typedef boost::shared_ptr<ControllerContext> ControllerContextPtr;
class SpotifyController {
public:
struct InitializationException : std::runtime_error {
InitializationException(const char* const what) : std::runtime_error(what) {}
};
SpotifyController();
~SpotifyController();
void playOrPause();
void goToPreviousTrack();
void goToNextTrack();
bool isSpotifyPlaying();
bool isShuffling();
void setShuffling(bool shuffling);
bool isRepeating();
void setRepeating(bool repeating);
private:
boost::shared_ptr<ControllerContext> m_context;
};
#endif