|
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: Implementation of read api for contentinfodb |
|
15 * |
|
16 */ |
|
17 #include "cpixcontentinfodbread.h" |
|
18 #include "contentinfodbreadprivate.h" |
|
19 #include <qstringlist.h> |
|
20 |
|
21 // --------------------------------------------------------------------------- |
|
22 // ContentInfoDbRead::ContentInfoDbRead() |
|
23 // --------------------------------------------------------------------------- |
|
24 // |
|
25 ContentInfoDbRead::ContentInfoDbRead():iPvtImpl( new ContentInfoDbReadPrivate( this ) ) |
|
26 { |
|
27 } |
|
28 // --------------------------------------------------------------------------- |
|
29 // ContentInfoDbRead::~ContentInfoDbRead() |
|
30 // --------------------------------------------------------------------------- |
|
31 // |
|
32 ContentInfoDbRead::~ContentInfoDbRead() |
|
33 { |
|
34 |
|
35 } |
|
36 // --------------------------------------------------------------------------- |
|
37 // ContentInfoDbRead::getPrimaryKeys() |
|
38 // --------------------------------------------------------------------------- |
|
39 // |
|
40 QStringList ContentInfoDbRead::getPrimaryKeys() |
|
41 { |
|
42 return iPvtImpl->getPrimaryKeys(); |
|
43 } |
|
44 // --------------------------------------------------------------------------- |
|
45 // ContentInfoDbRead::getValues() |
|
46 // --------------------------------------------------------------------------- |
|
47 // |
|
48 QString ContentInfoDbRead::getValues(QString Key, QString columnname) |
|
49 { |
|
50 return iPvtImpl->getValues(Key,columnname); |
|
51 } |
|
52 // --------------------------------------------------------------------------- |
|
53 // ContentInfoDbRead::getActionuri() |
|
54 // --------------------------------------------------------------------------- |
|
55 // |
|
56 QStringList ContentInfoDbRead::getActionuri(QString Key) |
|
57 { |
|
58 return iPvtImpl->getActionuri(Key); |
|
59 } |
|
60 // --------------------------------------------------------------------------- |
|
61 // ContentInfoDbRead::getShortTaburi() |
|
62 // --------------------------------------------------------------------------- |
|
63 // |
|
64 QString ContentInfoDbRead::getShortTaburi(QString Key) |
|
65 { |
|
66 return iPvtImpl->getShortTaburi(Key); |
|
67 } |
|
68 // --------------------------------------------------------------------------- |
|
69 // ContentInfoDbRead::getLongTaburi() |
|
70 // --------------------------------------------------------------------------- |
|
71 // |
|
72 QStringList ContentInfoDbRead::getLongTaburi(QString Key, QString FieldName) |
|
73 { |
|
74 return iPvtImpl->getLongTaburi(Key,FieldName); |
|
75 } |
|
76 // --------------------------------------------------------------------------- |
|
77 // ContentInfoDbRead::geturiDetails() |
|
78 // --------------------------------------------------------------------------- |
|
79 // |
|
80 bool ContentInfoDbRead::geturiDetails(QString key, QString uri, QString& iconname, |
|
81 QString& displayname) |
|
82 { |
|
83 return iPvtImpl->geturiDetails(key,uri,iconname,displayname); |
|
84 } |
|
85 int ContentInfoDbRead::categoryCount() |
|
86 { |
|
87 return iPvtImpl->categoryCount(); |
|
88 } |