~ubuntu-branches/ubuntu/feisty/kvirc/feisty

« back to all changes in this revision

Viewing changes to src/plugins/xmms/libkvixmms.h

  • Committer: Bazaar Package Importer
  • Author(s): Robin Verduijn
  • Date: 2002-04-16 13:47:41 UTC
  • Revision ID: james.westby@ubuntu.com-20020416134741-02slrqk6ige4cchu
Tags: 1:2.1.2-11
* #138169: The problem in bug #138169 is due to a bug in libtool. See
  bug #98342 for details. KVirc still doesn't build correctly even with
  the latest libtool (1.4.2-4). When this gets properly fixed I'll update
  kvirc's build dependency on libtool. In the mean time, I've applied a
  patch from that bug report which fixes it for me.
  (Closes: #138169)
* Redid debian/rules somewhat; no longer try to build differently
  depending on how KDE is installed. If the preferred configuration breaks
  for some platform, I'd rather know about it.
* Don't link versus qt-mt anymore.
* GNU config automated update: config.sub (20010907 to 20020307),
  config.guess (20010904 to 20020320)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __LIBKVIXMMS_H_INCLUDED__
 
2
#define __LIBKVIXMMS_H_INCLUDED__
 
3
 
 
4
//
 
5
//   THIS IS A PLUGIN FOR THE KVIrc IRC CLIENT
 
6
//   Copyright (C) 1999-2000 Szymon Stefanek (kvirc@tin.it)
 
7
//
 
8
//   This program is FREE software. You can redistribute it and/or
 
9
//   modify it under the terms of the GNU General Public License
 
10
//   as published by the Free Software Foundation; either version 2
 
11
//   of the License, or (at your opinion) any later version.
 
12
//
 
13
//   This program is distributed in the HOPE that it will be USEFUL,
 
14
//   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
//   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
16
//   See the GNU General Public License for more details.
 
17
//
 
18
//   You should have received a copy of the GNU General Public License
 
19
//   along with this program. If not, write to the Free Software Foundation,
 
20
//   Inc. ,59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
21
//
 
22
 
 
23
 
 
24
#include "kvi_statusbar.h"
 
25
//#include "kvi_style.h"
 
26
 
 
27
#include <qlabel.h>
 
28
/*
 
29
class KviXmmsWindow : public KviWindow
 
30
{
 
31
        Q_OBJECT
 
32
public:         // Consruction & Destruction
 
33
        KviXmmsWindow(KviFrame *lpFrm);
 
34
        ~KviXmmsWindow();
 
35
public:         // Fields
 
36
        QPushButton * m_pPlay;
 
37
        QPushButton * m_pStop;
 
38
        QPushButton * m_pPause;
 
39
        QPushButton * m_pRev;
 
40
        QPushButton * m_pFwd;
 
41
        QLabel      * m_pDisplay;
 
42
        int           m_timer;
 
43
        bool          m_bXmmsRunning;
 
44
        KviStr        m_szXmmsSong;
 
45
protected:      // Protected methods
 
46
        virtual QPixmap * myIconPtr();
 
47
        virtual void timerEvent(QTimerEvent *e);
 
48
protected slots:
 
49
        void playClicked();
 
50
        void stopClicked();
 
51
        void pauseClicked();
 
52
        void revClicked();
 
53
        void fwdClicked();
 
54
};
 
55
*/
 
56
 
 
57
class KviFrame;
 
58
 
 
59
class KviXmmsWidget : public KviDockableWidget
 
60
{
 
61
        Q_OBJECT
 
62
public:
 
63
        KviXmmsWidget(void * handle,KviStatusBar * parent,KviFrame * frame);
 
64
        ~KviXmmsWidget();
 
65
protected:
 
66
        KviFrame * m_pFrm;
 
67
        int m_mousePressX;
 
68
        int m_timer;
 
69
        bool m_bIsPlaying;
 
70
        bool m_bIsRunning;
 
71
        int  m_iPlaylistPos;
 
72
        int  m_iPlaylistLen;
 
73
protected:
 
74
        virtual void paintEvent(QPaintEvent *e);
 
75
        virtual void mousePressEvent(QMouseEvent *e);
 
76
        virtual void mouseReleaseEvent(QMouseEvent *e);
 
77
        virtual void timerEvent(QTimerEvent *e);
 
78
        void sayWhatIsPlayed();
 
79
};
 
80
 
 
81
#endif //!__LIBKVIXMMS_H_INCLUDED__