1
/* This file is part of KNemo
2
Copyright (C) 2006 Percy Leonhardt <percy@eris23.de>
4
KNemo is free software; you can redistribute it and/or modify
5
it under the terms of the GNU Library General Public License as
6
published by the Free Software Foundation; either version 2 of
7
the License, or (at your option) any later version.
9
KNemo 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
12
GNU Library General Public License for more details.
14
You should have received a copy of the GNU Library General Public License
15
along with this library; see the file COPYING.LIB. If not, write to
16
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17
Boston, MA 02110-1301, USA.
29
#include "interface.h"
32
* This is the baseclass for all backends. Every backend that
33
* should be used for KNemo must inherit from this class.
35
* @short Baseclass for all backends
36
* @author Percy Leonhardt <percy@eris23.de>
42
BackendBase( QDict<Interface>& interfaces );
43
virtual ~BackendBase();
46
* Create an instance of this backend because KNemo
47
* does not know about the different types of backends.
51
* This function is called from KNemo whenever the
52
* backend shall update the information of the
53
* interfaces in the QDict.
55
virtual void update() = 0;
59
* Call this function when you have completed the
60
* update. It will trigger the interfaces to check
61
* if there state has changed.
63
void updateComplete();
65
const QDict<Interface>& mInterfaces;
68
#endif // BACKENDBASE_H