videocollection/videocollectionview/inc/videocollectionviewutils.h
changeset 62 0e1e938beb1a
parent 52 e3cecb93e76a
equal deleted inserted replaced
59:a76e86df7ccd 62:0e1e938beb1a
    21 #include <qobject.h>
    21 #include <qobject.h>
    22 #include <qvariant.h>
    22 #include <qvariant.h>
    23 #include "videocollectioncommon.h"
    23 #include "videocollectioncommon.h"
    24 
    24 
    25 class HbListView;
    25 class HbListView;
    26 class VideoSortFilterProxyModel;
    26 class VideoProxyModelGeneric;
    27 
    27 
    28 class VideoCollectionViewUtils : public QObject
    28 class VideoCollectionViewUtils : public QObject
    29 {
    29 {
    30     Q_OBJECT
    30     Q_OBJECT
    31     
    31     
    71      * @param key Video collection central repository key.
    71      * @param key Video collection central repository key.
    72      * @param value Contains the read integer from cenrep at return.  
    72      * @param value Contains the read integer from cenrep at return.  
    73      * @return Application UID if operation succeeded, less than zero in error cases.
    73      * @return Application UID if operation succeeded, less than zero in error cases.
    74      */
    74      */
    75     int getCenRepIntValue(int key);
    75     int getCenRepIntValue(int key);
       
    76     
       
    77     /**
       
    78      * Set video services in use.
       
    79      */
       
    80     void setIsService();
       
    81 
       
    82     /**
       
    83      * Get video services in use.
       
    84      */
       
    85     bool isService();
    76 
    86 
    77 public:
    87 public:
    78     /**
    88     /**
    79      * Initializes list view for collection and selection dialog with common
    89      * Initializes list view for collection and selection dialog with common
    80      * properties.
    90      * properties.
    82     static void initListView(HbListView *view);
    92     static void initListView(HbListView *view);
    83     
    93     
    84     /**
    94     /**
    85      * Initilizes model sort values.
    95      * Initilizes model sort values.
    86      */
    96      */
    87     static void sortModel(VideoSortFilterProxyModel *model, bool async, VideoCollectionCommon::TCollectionLevels target);
    97     static void sortModel(VideoProxyModelGeneric *model, bool async, VideoCollectionCommon::TCollectionLevels target);
    88     
    98     
    89     /**
    99     /**
    90      * Method saves the latest videolist widget level into local activity manager 
   100      * Method saves the latest videolist widget level into local activity manager 
    91      * data container.
   101      * data container.
    92      * 
   102      * 
   147      * destructor
   157      * destructor
   148      */
   158      */
   149     virtual ~VideoCollectionViewUtils();
   159     virtual ~VideoCollectionViewUtils();
   150 
   160 
   151 private:
   161 private:
       
   162 
       
   163     /** is service */
       
   164     bool mIsService;
       
   165     
   152     /** current sorting role */
   166     /** current sorting role */
   153     int mVideosSortRole;
   167     int mVideosSortRole;
   154     int mCollectionsSortRole;
   168     int mCollectionsSortRole;
   155     
   169     
   156     /** current sorting order */
   170     /** current sorting order */