equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
74 { |
74 { |
75 // convert given URL to QUrl format |
75 // convert given URL to QUrl format |
76 QString urlString = QString::fromUtf16(aUrl.Ptr(), aUrl.Length()); |
76 QString urlString = QString::fromUtf16(aUrl.Ptr(), aUrl.Length()); |
77 QUrl* url = new QUrl(urlString); |
77 QUrl* url = new QUrl(urlString); |
78 bool ret = QDesktopServices::openUrl(*url); |
78 bool ret = QDesktopServices::openUrl(*url); |
|
79 delete url; |
79 if(!ret) |
80 if(!ret) |
80 { |
81 { |
81 User::Leave(KErrNotFound); |
82 User::Leave(KErrNotFound); |
82 } |
83 } |
83 |
|
84 } |
84 } |
85 |
85 |
86 void DRM::CDrmBrowserLauncher::ConstructL() |
86 void DRM::CDrmBrowserLauncher::ConstructL() |
87 { |
87 { |
88 } |
88 } |