videocollection/videocollectionwrapper/tsrc/testvideocollectionlistener/stub/inc/stubsignalreceiver.h
changeset 55 4bfa887905cf
parent 38 ff53afa8ad05
equal deleted inserted replaced
50:21fe8338c6bf 55:4bfa887905cf
    73      * return mLatestInteger
    73      * return mLatestInteger
    74      */
    74      */
    75     int getLatestIntegerData();
    75     int getLatestIntegerData();
    76     
    76     
    77     /**
    77     /**
    78      * return mListComplete
    78      * return mVideoListComplete
    79      */
    79      */
    80     bool getListComplete();
    80     bool getVideoListComplete();
       
    81     
       
    82     /**
       
    83      * return mAlbumListComplete
       
    84      */
       
    85     bool getAlbumListComplete();
    81     
    86     
    82 public slots:
    87 public slots:
    83 
    88 
    84     /**
    89     /**
    85      * Saves provided address to mLatestPtr
    90      * Saves provided address to mLatestPtr
   118     
   123     
   119     /**
   124     /**
   120      * Saves provided integer to mLatestItemId and provided pointer to
   125      * Saves provided integer to mLatestItemId and provided pointer to
   121      * mLatestPtr
   126      * mLatestPtr
   122      */
   127      */
   123     void albumListAvailableSlot(TMPXItemId albumId,
   128     void albumListAvailableSlot(TMPXItemId &albumId,
   124             CMPXMediaArray *albumItems);
   129             CMPXMediaArray *albumItems);
   125     
   130     
   126     /**
   131     /**
   127      * copies provided list data to mLatesListData
   132      * copies provided list data to mLatesListData
   128      */
   133      */
   129     void albumRemoveFailureSlot(QList<TMPXItemId> *items);
   134     void albumRemoveFailureSlot(QList<TMPXItemId> *items);
   130 
   135 
   131     /**
   136     /**
   132      * saves provided item id into mLatestItemId
   137      * saves provided item id into mLatestItemId
   133      */
   138      */
   134     void itemDeletedSlot(TMPXItemId id);
   139     void itemDeletedSlot(TMPXItemId &id);
   135     
   140     
   136     /**
   141     /**
   137      * saves provided item id into mLatestModifiedItemId
   142      * saves provided item id into mLatestModifiedItemId
   138      */
   143      */
   139     virtual void itemModifiedSlot(const TMPXItemId &itemId);
   144     virtual void itemModifiedSlot(const TMPXItemId &itemId);
   140     
   145     
   141     /**
   146     /**
   142      * Sets boolean mListComplete to true;
   147      * Sets boolean mVideoListComplete to true;
   143      */
   148      */
   144     void listCompleteSlot();
   149     void videoListCompleteSlot();
       
   150     
       
   151     /**
       
   152      * Sets boolean mAlbumListcomplete to true;
       
   153      */
       
   154     void albumListCompleteSlot();
   145     
   155     
   146 private:
   156 private:
   147     /**
   157     /**
   148      * Contains address of latest pointer passed to object
   158      * Contains address of latest pointer passed to object
   149      */
   159      */
   168      * contains contents of list received from signal
   178      * contains contents of list received from signal
   169      */
   179      */
   170     QList<TMPXItemId> mLatesListData;
   180     QList<TMPXItemId> mLatesListData;
   171     
   181     
   172     /**
   182     /**
   173      * True if listCompleteSlot has been called.
   183      * True if videoListCompleteSlot has been called.
   174      */
   184      */
   175     bool mListComplete;
   185     bool mVideoListComplete;
       
   186 
       
   187     /**
       
   188      * True if albumListCompleteSlot has been called.
       
   189      */
       
   190     bool mAlbumListComplete;
   176 };
   191 };
   177 
   192 
   178 #endif
   193 #endif