~ubuntu-branches/ubuntu/jaunty/imms/jaunty

« back to all changes in this revision

Viewing changes to immscore/serverstub.cc

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Veber
  • Date: 2005-04-13 23:43:11 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050413234311-kzr68z9l7z5mv551
Tags: 2.0.3-2
Build depend on xmms-dev (>= 1.2.10+cvs20050209)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "serverstub.h"
 
2
 
 
3
#include <iostream>
 
4
#include <sstream>
 
5
 
 
6
using std::cerr;
 
7
using std::endl;
 
8
using std::ostringstream;
 
9
 
 
10
void IMMSServer::request_playlist_change()
 
11
{
 
12
    write_command("RequestPlaylistChange");
 
13
 
14
 
 
15
void IMMSServer::request_playlist_item(int index)
 
16
{
 
17
    ostringstream osstr;
 
18
    osstr << "GetPlaylistItem " << index;
 
19
    write_command(osstr.str());
 
20
}
 
21
 
 
22
void IMMSServer::request_entire_playlist()
 
23
{
 
24
    write_command("GetEntirePlaylist");
 
25
}
 
26
 
 
27
void IMMSServer::reset_selection()
 
28
{
 
29
    write_command("ResetSelection");
 
30
}