2 * Copyright (C) 2001 Stefan Schimanski <1Stein@gmx.de>
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this program; if not, write to the Free
16 * Software Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301, USA.
19 #ifndef KPARTSAVER_H_INCLUDED
20 #define KPARTSAVER_H_INCLUDED
26 #include <q3valuelist.h>
28 #include <qpushbutton.h>
29 #include <qradiobutton.h>
31 #include <qcheckbox.h>
35 #include <kapplication.h>
37 #include <klibloader.h>
39 #include <kfiledialog.h>
41 #include <kparts/part.h>
43 #include <kio/jobclasses.h>
45 #include <kmimetype.h>
47 #include <kscreensaver.h>
49 #include "configwidget.h"
52 class SaverConfig
: public ConfigWidget
{
56 SaverConfig( QWidget
* parent
= 0, const char* name
= 0 );
69 class KPartSaver
: public KScreenSaver
{
73 KPartSaver( WId id
=0 );
74 virtual ~KPartSaver();
77 void next( bool random
);
78 void queue( KURL url
);
88 bool openURL( KURL url
);
90 Q3ValueList
<Medium
> m_media
;
92 KParts::ReadOnlyPart
*m_part
;
99 KLibFactory
*m_factory
;