Changeset 277c39ca


Ignore:
Timestamp:
11/08/13 14:13:22 (19 months ago)
Author:
yurkis <yurkis@…>
Branches:
master, enter/10, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1, releng/10.1.1, releng/10.1.2
Children:
3347cf1
Parents:
a6da851
Message:

pc updatecenter: more work for update controller baseclass, add system updates contrroller, little work for indicator widget

Location:
src-qt4/pc-updatecenter
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-updatecenter/indicatorwidget.cpp

    rda002c73 r277c39ca  
    1313    delete ui; 
    1414} 
     15 
     16bool IndicatorWidget::init(QString check_img, QString ok_img, 
     17                           QString avail_img, QString process_img, 
     18                           CAbstractUpdateController *upd_controller) 
     19{ 
     20 
     21} 
     22 
     23void IndicatorWidget::stateChanged(CAbstractUpdateController::EUpdateControllerState new_state) 
     24{ 
     25 
     26} 
     27 
     28void IndicatorWidget::progress(CAbstractUpdateController::SProgress progress) 
     29{ 
     30 
     31} 
  • src-qt4/pc-updatecenter/indicatorwidget.h

    rda002c73 r277c39ca  
    33 
    44#include <QWidget> 
     5 
     6#include "updatecontroller.h" 
    57 
    68namespace Ui { 
     
    1517    explicit IndicatorWidget(QWidget *parent = 0); 
    1618    ~IndicatorWidget(); 
     19 
     20    bool init(QString check_img, QString ok_img, QString avail_img, QString process_img, 
     21              CAbstractUpdateController* upd_controller); 
    1722     
     23public slots: 
     24    void stateChanged(CAbstractUpdateController::EUpdateControllerState new_state); 
     25    void progress(CAbstractUpdateController::SProgress progress); 
     26 
    1827private: 
    1928    Ui::IndicatorWidget *ui; 
  • src-qt4/pc-updatecenter/indicatorwidget.ui

    rda002c73 r277c39ca  
    77    <x>0</x> 
    88    <y>0</y> 
    9     <width>470</width> 
    10     <height>76</height> 
     9    <width>468</width> 
     10    <height>74</height> 
    1111   </rect> 
    1212  </property> 
     
    2828    <layout class="QVBoxLayout" name="verticalLayout_4"> 
    2929     <item> 
    30       <widget class="QLabel" name="label_4"> 
     30      <widget class="QLabel" name="msgLabel"> 
    3131       <property name="text"> 
    3232        <string>Checking for updates...</string> 
     
    3737      <layout class="QHBoxLayout" name="horizontalLayout_3"> 
    3838       <item> 
    39         <widget class="QProgressBar" name="progressBar"> 
     39        <widget class="QProgressBar" name="progress"> 
    4040         <property name="value"> 
    4141          <number>24</number> 
     
    4444       </item> 
    4545       <item> 
    46         <widget class="QPushButton" name="pushButton_3"> 
     46        <widget class="QPushButton" name="checkButton"> 
    4747         <property name="text"> 
    4848          <string>Check</string> 
  • src-qt4/pc-updatecenter/pc-updatecenter.pro

    rda002c73 r277c39ca  
    1616        mainwindow.cpp \ 
    1717    indicatorwidget.cpp \ 
    18     updatecontroller.cpp 
     18    updatecontroller.cpp \ 
     19    syscontroller.cpp 
    1920 
    2021HEADERS  += mainwindow.h \ 
    2122    indicatorwidget.h \ 
    22     updatecontroller.h 
     23    updatecontroller.h \ 
     24    syscontroller.h 
    2325 
    2426FORMS    += mainwindow.ui \ 
  • src-qt4/pc-updatecenter/updatecontroller.cpp

    rda002c73 r277c39ca  
    11#include "updatecontroller.h" 
    22 
    3 CUpdateController::CUpdateController() 
     3CAbstractUpdateController::CAbstractUpdateController() 
    44{ 
    55} 
  • src-qt4/pc-updatecenter/updatecontroller.h

    rda002c73 r277c39ca  
    55#include <QString> 
    66 
    7 class CUpdateController:public QObject 
     7class CAbstractUpdateController:public QObject 
    88{ 
    99    Q_OBJECT 
     
    2828 
    2929public: 
    30     CUpdateController(); 
     30    CAbstractUpdateController(); 
    3131 
    3232    EUpdateControllerState curentState(); 
    3333 
     34 
     35 
    3436signals: 
    35     virtual void stateChanged(EUpdateControllerState)=0; 
    36     virtual void progress(SProgress progress); 
     37    void stateChanged(EUpdateControllerState new_state); 
     38    void progress(SProgress progress); 
    3739 
    3840public slots: 
    39  
     41    virtual void check(){}//=0; 
     42    virtual void updateAll(){}//=0; 
    4043 
    4144}; 
Note: See TracChangeset for help on using the changeset viewer.