videocollection/videocollectionview/inc/videocollectionviewutils.h
changeset 52 e3cecb93e76a
parent 47 45e72b57a2fd
child 62 0e1e938beb1a
equal deleted inserted replaced
47:45e72b57a2fd 52:e3cecb93e76a
    17 
    17 
    18 #ifndef __VIDEOCOLLECTIONVIEWUTILS_H__
    18 #ifndef __VIDEOCOLLECTIONVIEWUTILS_H__
    19 #define __VIDEOCOLLECTIONVIEWUTILS_H__
    19 #define __VIDEOCOLLECTIONVIEWUTILS_H__
    20 
    20 
    21 #include <qobject.h>
    21 #include <qobject.h>
       
    22 #include <qvariant.h>
    22 #include "videocollectioncommon.h"
    23 #include "videocollectioncommon.h"
    23 
    24 
    24 class HbListView;
    25 class HbListView;
    25 class VideoSortFilterProxyModel;
    26 class VideoSortFilterProxyModel;
    26 
    27 
    55      * @return Zero if operation succeeded, less than zero in error cases.
    56      * @return Zero if operation succeeded, less than zero in error cases.
    56      */
    57      */
    57     int loadSortingValues(int& role, Qt::SortOrder& order, VideoCollectionCommon::TCollectionLevels target);
    58     int loadSortingValues(int& role, Qt::SortOrder& order, VideoCollectionCommon::TCollectionLevels target);
    58     
    59     
    59     /**
    60     /**
    60      * Get service icon resource strings from cenrep.
    61      * Get string value for a key from central repository.
    61      * 
    62      * 
    62      * @param icon On return contains the resource string for icon image.
    63      * @param key Video collection central repository key.
    63      * @param iconPressed On return contains the resource string for pressed icon image.
    64      * @return String stored in central repository. Empty string in error cases.
    64      * @return Zero if operation succeeded, less than zero in error cases. 
       
    65      */
    65      */
    66     int getServiceIconStrings(QString& icon, QString& iconPressed);
    66     QString getCenRepStringValue(int key);
    67     
    67     
    68     /**
    68     /**
    69      * Get service URI string.
    69      * Get int value for a key from central repository.
    70      * 
    70      * 
    71      * @return Service URI string. Invalid string in error cases.
    71      * @param key Video collection central repository key.
       
    72      * @param value Contains the read integer from cenrep at return.  
       
    73      * @return Application UID if operation succeeded, less than zero in error cases.
    72      */
    74      */
    73     QString getServiceUriString();
    75     int getCenRepIntValue(int key);
    74     
    76 
    75 public:
    77 public:
    76     /**
    78     /**
    77      * Initializes list view for collection and selection dialog with common
    79      * Initializes list view for collection and selection dialog with common
    78      * properties.
    80      * properties.
    79      */
    81      */