LanguageUpdateNotifier.h

Go to the documentation of this file.
00001 #ifndef LANGUAGE_UPDATE_PROXY_H
00002 #define LANGUAGE_UPDATE_PROXY_H 
00003 
00004 #include <qobject.h>
00005 #include <qstring.h>
00006 
00007 /*
00008  * The sole purpose of this class is to emit a signal
00009  * when a study language is selected or deselected.
00010  * This class is used by StudyLanguageItem.
00011  * I was forced to do that because QCheckListItem doesn't
00012  * inherit from QObject and cannot emit signals.
00013  * and also because it's not possible to refer to PreferencesDialog from
00014  * QCheckListItem because of C++ mutual reference problem.
00015  */
00016 class LanguageUpdateNotifier : public QObject {
00017 
00018     Q_OBJECT
00019 
00020 public:
00021 
00022     void addLanguage( const QString& language );
00023     void removeLanguage( const QString& language );
00024 
00025 signals:
00026 
00027     void languageAdded( const QString& language );
00028     void languageRemoved( const QString& language );
00029 
00030 private:
00031 
00032 };
00033 
00034 #endif

Generated on Sun Mar 1 17:30:47 2009 for toMOTko by  doxygen 1.5.6