controlpanelui/src/tonefetcher/inc/tonefetcherutils.cpp
branchRCL_3
changeset 13 90fe62538f66
equal deleted inserted replaced
12:3fec62e6e7fc 13:90fe62538f66
       
     1 /*
       
     2  * Copyright (c) 2009 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  *     The source file for tone fetcher utilities.
       
    16  *     
       
    17  */
       
    18 
       
    19 #include "tonefetcherutils.h"
       
    20 #include <QDir>
       
    21 #include <QChar>
       
    22 
       
    23 QString ToneFetcherUtils::normalizeSeperator(const QString &path)
       
    24 {
       
    25     QString standardpath( path );
       
    26     QChar c('/');
       
    27     QChar c1('\\');
       
    28     if (standardpath.contains(c, Qt::CaseSensitive)) {
       
    29         standardpath.replace(c, QDir::separator());
       
    30     }
       
    31     if (standardpath.contains(c1, Qt::CaseSensitive)) {
       
    32         standardpath.replace(c1, QDir::separator());
       
    33     }        
       
    34     return standardpath;
       
    35 }