-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBrowsifyAPI.h
More file actions
53 lines (37 loc) · 1.13 KB
/
BrowsifyAPI.h
File metadata and controls
53 lines (37 loc) · 1.13 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
/**********************************************************\
Auto-generated BrowsifyAPI.h
\**********************************************************/
#include <string>
#include <sstream>
#include <boost/weak_ptr.hpp>
#include "JSAPIAuto.h"
#include "BrowserHost.h"
#include "BrowsifyPlugin.h"
#ifndef H_BrowsifyAPI
#define H_BrowsifyAPI
class SpotifyController;
class BrowsifyAPI : public FB::JSAPIAuto
{
public:
BrowsifyAPI(const BrowsifyPluginPtr& plugin, const FB::BrowserHostPtr& host);
~BrowsifyAPI();
BrowsifyPluginPtr getPlugin();
void playOrPause();
void goToPreviousTrack();
void goToNextTrack();
bool isShuffling();
void setShuffling(bool shuffling);
bool isRepeating();
void setRepeating(bool repeating);
// Read only property
bool isSpotifyPlaying();
// Read-only property ${PROPERTY.ident}
std::string get_version();
private:
typedef boost::shared_ptr<SpotifyController> SpotifyControllerPtr;
BrowsifyPluginWeakPtr m_plugin;
FB::BrowserHostPtr m_host;
SpotifyControllerPtr m_player;
std::string m_testString;
};
#endif // H_BrowsifyAPI