~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to noatun/noatun/modules/dcopiface/dcopiface.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef DCOPIFACE_H
 
2
#define DCOPIFACE_H
 
3
 
 
4
#include "dcopiface.h"
 
5
#include <player.h>
 
6
#include <plugin.h>
 
7
 
 
8
#include <dcopobject.h>
 
9
 
 
10
class NIF : public Plugin, public DCOPObject
 
11
{
 
12
K_DCOP
 
13
 
 
14
public:
 
15
        NIF();
 
16
        ~NIF();
 
17
 
 
18
private slots:
 
19
        void newSongPlaying();
 
20
 
 
21
k_dcop:
 
22
        void toggleListView();
 
23
        void handleButtons();
 
24
        void removeCurrent();
 
25
 
 
26
        void back();
 
27
        void stop();
 
28
        void play();
 
29
        void playpause();
 
30
        void fastForward();
 
31
        void skipTo(int);
 
32
        void loop();
 
33
 
 
34
        void newCurrent();
 
35
        void playCurrent();
 
36
        void setVolume(int);
 
37
 
 
38
        /**
 
39
         * length in milliseconds
 
40
         **/
 
41
        int length();
 
42
        /**
 
43
         * position in milliseconds
 
44
         **/
 
45
        int position();
 
46
 
 
47
        /**
 
48
         * 0 stopped
 
49
         * 1 paused
 
50
         * 2 playing
 
51
         **/
 
52
        int state();
 
53
 
 
54
        QString lengthString();
 
55
        QString title();
 
56
 
 
57
        QCString visStack();
 
58
        QCString session();
 
59
        
 
60
        void addFile(const QString& f, bool autoplay);
 
61
        void addFile(const QStringList &f, bool autoplay);
 
62
 
 
63
        void loadPlugin(const QString &specFile);
 
64
 
 
65
#ifdef DOCUMENTATION_BLEH_BLEH_DONT_TRY_COMPILING_THIS
 
66
signals:
 
67
        void exiting();
 
68
        void newFile();
 
69
 
 
70
#endif
 
71
};
 
72
 
 
73
#endif
 
74