phoneengine/phoneservices/inc/urischemeparser.h
changeset 46 bc5a64e5bc3c
equal deleted inserted replaced
45:6b911d05207e 46:bc5a64e5bc3c
       
     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: Base class for URI Scheme parsers.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef URISCHEMEPARSER_H
       
    19 #define URISCHEMEPARSER_H
       
    20 
       
    21 #include <QObject>
       
    22 #include <QString>
       
    23 
       
    24 class UriSchemeParser : public QObject
       
    25 {
       
    26     Q_OBJECT
       
    27 
       
    28 public:
       
    29     UriSchemeParser(QObject *parent = 0);
       
    30     ~UriSchemeParser();
       
    31     
       
    32     virtual bool isSupportedUriScheme(const QString &uri) const = 0;
       
    33     virtual bool parseUri(
       
    34         const QString &uri,
       
    35         QString &phoneNumber,
       
    36         QString &dtmfString) const = 0;
       
    37 
       
    38 protected:
       
    39     bool parsePhoneDialString(
       
    40         const QString &uri,
       
    41         QString &phoneNumber,
       
    42         QString &dtmfString) const;
       
    43 };
       
    44 
       
    45 #endif // URISCHEMEPARSER_H