messagingapp/smartmessaging/ringbc/src/ringbc.cpp
changeset 23 238255e8b033
child 27 e4592d119491
child 37 518b245aa84c
equal deleted inserted replaced
5:4697dfb2d7ad 23:238255e8b033
       
     1 /*
       
     2  * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:  
       
    15  *     A class which takes care of reading the possible new
       
    16  *     service centres from SIM and adds them to pda-side Sms Settings.
       
    17  *
       
    18  */
       
    19 
       
    20 // INCLUDE FILES
       
    21 
       
    22 #include <hbmessagebox.h>
       
    23 
       
    24 #include "ringbc.h"
       
    25 #include "ringbc_p.h"
       
    26 #include "ringbctoneconverter.h"
       
    27 #include "s60qconversions.h"
       
    28 #include "debugtraces.h"
       
    29 
       
    30 // ================= MEMBER FUNCTIONS =======================
       
    31 
       
    32 // ----------------------------------------------------------------------------
       
    33 // RingBc::RingBc
       
    34 // @see ringbc.h
       
    35 // ----------------------------------------------------------------------------
       
    36 RingBc::RingBc()
       
    37     {
       
    38     QDEBUG_WRITE("RingBc::RingBc : Enter")
       
    39     d_ptr = new RingBcPrivate();
       
    40     QDEBUG_WRITE("RingBc::RingBc : Exit")
       
    41     }
       
    42 
       
    43 // ----------------------------------------------------------------------------
       
    44 // RingBc::RingBc
       
    45 // @see ringbc.h
       
    46 // ----------------------------------------------------------------------------
       
    47 RingBc::~RingBc()
       
    48     {
       
    49     QDEBUG_WRITE("RingBc::~RingBc : Enter")
       
    50     delete d_ptr;	
       
    51     QDEBUG_WRITE("~RingBc::RingBc : Exit")
       
    52     }
       
    53 
       
    54 // ----------------------------------------------------------------------------
       
    55 // RingBc::saveTone
       
    56 // @see ringbc.h
       
    57 // ----------------------------------------------------------------------------
       
    58 void RingBc::saveTone(const QString &path)
       
    59     {
       
    60     QDEBUG_WRITE("RingBc::saveTone : Enter")
       
    61     d_ptr->saveTone(path);
       
    62     QDEBUG_WRITE("RingBc::saveTone : Exit")
       
    63     }
       
    64 
       
    65 // ----------------------------------------------------------------------------
       
    66 // RingBc::toneTitle
       
    67 // @see ringbc.h
       
    68 // ----------------------------------------------------------------------------
       
    69 QString RingBc::toneTitle(const QString &path)
       
    70     {
       
    71     QDEBUG_WRITE("RingBc::toneTitle : Enter")
       
    72     return d_ptr->toneTitle(path);
       
    73     }
       
    74 
       
    75 // ----------------------------------------------------------------------------
       
    76 // RingBc::askSaveQuery
       
    77 // @see ringbc.h
       
    78 // ----------------------------------------------------------------------------
       
    79 bool RingBc::askSaveQuery()
       
    80     {
       
    81     QDEBUG_WRITE("RingBc::~RingBc : Enter")
       
    82     bool result =HbMessageBox::question("Save ringing tone ?",
       
    83                                 "Save",
       
    84                                 "Cancel");
       
    85     
       
    86     QDEBUG_WRITE_FORMAT("RingBc::askSaveQuery  Exit reslut:",result)
       
    87     return result;
       
    88     
       
    89     }
       
    90 //  End of File