pUpdateCheckerDialog.sip 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. class pUpdateItem
  2. {
  3. %TypeHeaderCode
  4. #include <gui/gc-updatechecker/pUpdateCheckerDialog.h>
  5. %End
  6. public:
  7. enum Type {
  8. Updated,
  9. Id,
  10. Link,
  11. Title,
  12. Author,
  13. Content
  14. };
  15. pUpdateItem( pUpdateChecker* updateChecker = 0, const QDomElement& element = QDomElement() );
  16. bool operator<( const pUpdateItem& other ) const;
  17. bool operator>( const pUpdateItem& other ) const;
  18. bool operator<( const pVersion& other ) const;
  19. bool operator>( const pVersion& other ) const;
  20. QDateTime updated() const;
  21. QString id() const;
  22. QUrl link() const;
  23. QString title() const;
  24. QString author() const;
  25. QString content() const;
  26. QString toolTip() const;
  27. bool isFeatured() const;
  28. QString displayText() const;
  29. QString versionString() const;
  30. pVersion version() const;
  31. bool isValid() const;
  32. protected:
  33. };
  34. class pUpdateCheckerDialog : QDialog
  35. {
  36. %TypeHeaderCode
  37. #include <gui/gc-updatechecker/pUpdateCheckerDialog.h>
  38. %End
  39. public:
  40. pUpdateCheckerDialog( pUpdateChecker* updateChecker, QWidget* parent = 0 );
  41. virtual bool event( QEvent* event );
  42. protected:
  43. void localeChanged();
  44. protected slots:
  45. void accessManager_finished( QNetworkReply* reply );
  46. void on_lwVersions_itemSelectionChanged();
  47. void on_lwVersions_itemDoubleClicked( QListWidgetItem* item );
  48. virtual void accept();
  49. };