--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/messagingapp/smartmessaging/ringbc/src/ringbc.cpp Fri Apr 16 14:56:15 2010 +0300
@@ -0,0 +1,90 @@
+/*
+ * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+ * All rights reserved.
+ * This component and the accompanying materials are made available
+ * under the terms of "Eclipse Public License v1.0"
+ * which accompanies this distribution, and is available
+ * at the URL "http://www.eclipse.org/legal/epl-v10.html".
+ *
+ * Initial Contributors:
+ * Nokia Corporation - initial contribution.
+ *
+ * Contributors:
+ *
+ * Description:
+ * A class which takes care of reading the possible new
+ * service centres from SIM and adds them to pda-side Sms Settings.
+ *
+ */
+
+// INCLUDE FILES
+
+#include <hbmessagebox.h>
+
+#include "ringbc.h"
+#include "ringbc_p.h"
+#include "ringbctoneconverter.h"
+#include "s60qconversions.h"
+#include "debugtraces.h"
+
+// ================= MEMBER FUNCTIONS =======================
+
+// ----------------------------------------------------------------------------
+// RingBc::RingBc
+// @see ringbc.h
+// ----------------------------------------------------------------------------
+RingBc::RingBc()
+ {
+ QDEBUG_WRITE("RingBc::RingBc : Enter")
+ d_ptr = new RingBcPrivate();
+ QDEBUG_WRITE("RingBc::RingBc : Exit")
+ }
+
+// ----------------------------------------------------------------------------
+// RingBc::RingBc
+// @see ringbc.h
+// ----------------------------------------------------------------------------
+RingBc::~RingBc()
+ {
+ QDEBUG_WRITE("RingBc::~RingBc : Enter")
+ delete d_ptr;
+ QDEBUG_WRITE("~RingBc::RingBc : Exit")
+ }
+
+// ----------------------------------------------------------------------------
+// RingBc::saveTone
+// @see ringbc.h
+// ----------------------------------------------------------------------------
+void RingBc::saveTone(const QString &path)
+ {
+ QDEBUG_WRITE("RingBc::saveTone : Enter")
+ d_ptr->saveTone(path);
+ QDEBUG_WRITE("RingBc::saveTone : Exit")
+ }
+
+// ----------------------------------------------------------------------------
+// RingBc::toneTitle
+// @see ringbc.h
+// ----------------------------------------------------------------------------
+QString RingBc::toneTitle(const QString &path)
+ {
+ QDEBUG_WRITE("RingBc::toneTitle : Enter")
+ return d_ptr->toneTitle(path);
+ }
+
+// ----------------------------------------------------------------------------
+// RingBc::askSaveQuery
+// @see ringbc.h
+// ----------------------------------------------------------------------------
+bool RingBc::askSaveQuery()
+ {
+ QDEBUG_WRITE("RingBc::~RingBc : Enter")
+ bool result =HbMessageBox::question("Save ringing tone ?",
+ "Save",
+ "Cancel");
+
+ QDEBUG_WRITE_FORMAT("RingBc::askSaveQuery Exit reslut:",result)
+ return result;
+
+ }
+// End of File