phoneengine/phoneservices/inc/ctiurischemeparser.h
changeset 46 bc5a64e5bc3c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/phoneengine/phoneservices/inc/ctiurischemeparser.h	Tue Jul 06 14:15:47 2010 +0300
@@ -0,0 +1,46 @@
+/*!
+* 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: Provides services to parse CTI URIs.
+*
+*/
+
+#ifndef CTIURISCHEMEPARSER_H
+#define CTIURISCHEMEPARSER_H
+
+#include <QObject>
+#include <QString>
+#include "urischemeparser.h"
+
+class CtiUriSchemeParser : public UriSchemeParser
+{
+    Q_OBJECT
+
+public:
+    CtiUriSchemeParser(QObject *parent = 0);
+    ~CtiUriSchemeParser();
+    
+public:
+    bool isSupportedUriScheme(const QString &uri) const;
+    bool parseUri(
+        const QString &uri,
+        QString &phoneNumber,
+        QString &dtmfString) const;
+    
+private:
+    bool validateUri(const QString &uri) const;
+    void removeVisualSeparators(QString &uri) const;
+    void convertToneInputToPostDialDtmfString(QString &uri) const;
+};
+
+#endif // CTIURISCHEMEPARSER_H