qtmobility/examples/bearermonitor/sessionwidget.cpp
changeset 4 90517678cc4f
parent 0 cfcbf08528c4
child 5 453da2cfceef
equal deleted inserted replaced
1:2b40d63a9c3d 4:90517678cc4f
    66             this, SLOT(openSyncSession()));
    66             this, SLOT(openSyncSession()));
    67     connect(closeSessionButton, SIGNAL(clicked()),
    67     connect(closeSessionButton, SIGNAL(clicked()),
    68             this, SLOT(closeSession()));
    68             this, SLOT(closeSession()));
    69     connect(stopSessionButton, SIGNAL(clicked()),
    69     connect(stopSessionButton, SIGNAL(clicked()),
    70             this, SLOT(stopSession()));
    70             this, SLOT(stopSession()));
       
    71 #if defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)
       
    72     connect(deleteSessionButton, SIGNAL(clicked()),
       
    73             this, SLOT(deleteSession()));
       
    74 #endif
    71 }
    75 }
    72 
    76 
    73 SessionWidget::~SessionWidget()
    77 SessionWidget::~SessionWidget()
    74 {
    78 {
    75     delete session;
    79     delete session;
    76 }
    80 }
       
    81 
       
    82 #if defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)
       
    83 void SessionWidget::deleteSession()
       
    84 {
       
    85     delete this;
       
    86 }
       
    87 #endif
    77 
    88 
    78 void SessionWidget::updateSession()
    89 void SessionWidget::updateSession()
    79 {
    90 {
    80     updateSessionState(session->state());
    91     updateSessionState(session->state());
    81     updateSessionError(session->error());
    92     updateSessionError(session->error());