summaryrefslogtreecommitdiffstats
path: root/amarok/src/loader/loader.h
blob: 7bc08119881007d2b4a60179256c701b7c0dd1d3 (plain)
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
/***************************************************************************
                          loader.h  -  loader application for Amarok
                             -------------------
    begin                : 2004/02/19
    copyright            : (C) 2004 Mark Kretschmann <markey@web.de>
                           (C) 2005 Max Howell
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef LOADER_H
#define LOADER_H

#include <tqapplication.h>

class TQProcess;
class TQStringList;

class Loader : public TQApplication
{
public:
    Loader( TQStringList );
   ~Loader();

private:
    virtual void timerEvent( TQTimerEvent* );

    TQProcess *m_proc;
    int       m_counter;
    TQWidget  *m_splash;

    static const int INTERVAL = 10; //ms
};

static bool isSplashEnabled();
static bool amarokIsRunning();

#define foreach( x ) \
    for( TQStringList::ConstIterator it = x.begin(), end = x.end(); it != end; ++it )

#endif