phoneapp/phoneuiqtviewadapter/src/phonenotecontroller.cpp
changeset 78 baacf668fe89
parent 76 cfea66083b62
equal deleted inserted replaced
76:cfea66083b62 78:baacf668fe89
    25 #include <hbmessagebox.h>
    25 #include <hbmessagebox.h>
    26 #include <hbprogressdialog.h>
    26 #include <hbprogressdialog.h>
    27 #include <hbaction.h>
    27 #include <hbaction.h>
    28 #include <phoneappcommands.hrh>
    28 #include <phoneappcommands.hrh>
    29 #include <hbstringutil.h>
    29 #include <hbstringutil.h>
    30 
    30 #include <xqsystemtoneservice.h>
    31 PhoneNoteController::PhoneNoteController(QObject *parent) : 
    31 
       
    32 PhoneNoteController::PhoneNoteController(XQSystemToneService& toneservice,
       
    33                                          QObject *parent ) : 
    32     QObject(parent), 
    34     QObject(parent), 
    33     m_dtmfNote(0),
    35     m_dtmfNote(0),
    34     m_queryNote(0)
    36     m_queryNote(0)
    35 {
    37 {
    36     PHONE_TRACE
    38     PHONE_TRACE
    37     m_signalMapper = new QSignalMapper(this);
    39     m_signalMapper = new QSignalMapper(this);
    38     connect(m_signalMapper, SIGNAL(mapped(int)), this, SIGNAL(command (int)));
    40     connect(m_signalMapper, SIGNAL(mapped(int)), this, SIGNAL(command (int)));
    39     m_globalNotes = new PhoneGlobalNotes(this);
    41     m_globalNotes = new PhoneGlobalNotes(toneservice, this);
    40     connect(m_globalNotes, SIGNAL(command(int)), this, SIGNAL(command(int)));
    42     connect(m_globalNotes, SIGNAL(command(int)), this, SIGNAL(command(int)));
    41 }
    43 }
    42 
    44 
    43 PhoneNoteController::~PhoneNoteController()
    45 PhoneNoteController::~PhoneNoteController()
    44 {
    46 {