[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenonbeta/kmameleon/main
From:       Primoz Anzur <zerokode () gmx ! net>
Date:       2005-04-03 0:27:12
Message-ID: 20050403002712.BBFA5633 () office ! kde ! org
[Download RAW message or body]

CVS commit by zero: 

I forgot to update a file :(


  M +72 -2     kmmgameslist.h   1.2


--- kdenonbeta/kmameleon/main/kmmgameslist.h  #1.1:1.2
@@ -17,8 +17,34 @@
 #define _KMMGAMESLIST_H__
 
-//Qt stuff...
+//KDE
+#include <kdebug.h>
+#include <kconfig.h>
+#include <kapplication.h>
+#include <klocale.h>
+#include <kstandarddirs.h>
+#include <kprocess.h>
+#include <kmessagebox.h>
+#include <kdeversion.h>
+
+
+//QT
+#include <qpushbutton.h>
+#include <qlistview.h>
+#include <qtooltip.h>
+#include <qfileinfo.h>
+#include <qdir.h>
+#include <qstringlist.h>
+#include <qlcdnumber.h>
+#include <qlabel.h>
+#include <qtextedit.h>
+#include <qxml.h>
+#include <qcursor.h>
+#include <qsplashscreen.h>
+#include <qradiobutton.h>
+
+//Custom...
 #include "dlggamelist.h"
 
-class ItemGamesList : public GameList
+class ItemGamesList : public GameList, QXmlDefaultHandler
 {
 Q_OBJECT
@@ -26,7 +52,51 @@ public:
         ItemGamesList( QWidget *parent=0, const char *name=0, WFlags f=0 );
         ~ItemGamesList();
+        void buildLists(void);
+        QListViewItem *getSelect(void);
+        QSplashScreen *splash;
+        QStringList getPresent(void);
+
+private:
+//have to check for the right versions... KProcess can't use setUseShell(bool)
+
+
+#if KDE_VERSION >= 306
+        KProcess infoProc;
+        KProcess vProc;
+#else
+        KShellProcess vProc;
+        KShellProcess infoProc;
+#endif
+        KConfig *config;
+        QString conf_xmameBinPath;
+        QListViewItem *item;
+
+        QString gametocheck;
+        int supported;
+        int presents;
+        void fillSupported(void);
+        void fillPresent(void);
+        QStringList gamesPresent;
+        QString modes(int);
+        void saveSupported(void);
+        
+        // xml parser
+        QFile xmlFile;
+        QString element;
+        
+        bool startElement( const QString&, const QString&, const QString& qName, \
const QXmlAttributes& ); +        bool characters ( const QString & );
+        bool endElement( const QString&, const QString&, const QString& );
+        bool endDocument(void);
+        QString removeChar(QString);
 
 protected slots:
         void closeEvent(QCloseEvent *);
+        void getCheck(int , int &);
+        void getList( KProcess *, char *, int);
+        void selChanged( QListViewItem* );
+        void refreshPresents( int );
+        void refreshSupported( int );
+        void reload( void );
 };
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic