idlehomescreen/xmluirendering/renderingplugins/xnnewstickerfactory/inc/xnnewstickercontrol.h
branchRCL_3
changeset 26 1b758917cafc
parent 17 b8fae6b8a148
equal deleted inserted replaced
25:137ebc85284b 26:1b758917cafc
    93 		
    93 		
    94 		/**
    94 		/**
    95 		 * Returns last index from iTitleTexts
    95 		 * Returns last index from iTitleTexts
    96 		 * Which is not empty string
    96 		 * Which is not empty string
    97 		 */
    97 		 */
    98         TInt LastIndexWithContent();
    98         TInt LastIndexWithContent() const;
    99         
    99         
   100         /**
   100         /**
   101          * Delete all titles.
   101          * Delete all titles.
   102          */
   102          */
   103         void ClearTitles();
   103         void ClearTitles();
   114         virtual ~CXnNewstickerControl();
   114         virtual ~CXnNewstickerControl();
   115 
   115 
   116 	    /**
   116 	    /**
   117         * Selects title to be shown
   117         * Selects title to be shown
   118         */
   118         */
   119         const TDesC& SelectTitle();
   119         const TDesC& CurrentTitle() const;
       
   120 
       
   121         /**
       
   122         * Selects current title to display
       
   123         */
       
   124         TInt SelectTitle();
   120         
   125         
   121         /**
   126         /**
   122         * Sets the current title to default ( last one ) or move to next one
   127         * Selects next title to display
   123         */
   128         */
   124         TBool SetCurrentTitle( TBool aSetDefault = EFalse );
   129         TBool SelectNextTitle();
   125 
   130 
       
   131         /**
       
   132         * Checks is there any visible titles in array
       
   133         */
       
   134         TBool IsVisibleTitles() const;
       
   135         
       
   136         /**
       
   137          * Sets scroll looping
       
   138          */
       
   139         void SetScrollLooping( TBool aLooping );
   126 
   140 
       
   141         /**
       
   142          * Peeks next title, return loop status in aEndOfLoop.         
       
   143          */
       
   144         TPtrC PeekNextTitle( TBool& aEndOfLoop ) const;
       
   145         
   127     private: 
   146     private: 
   128 
   147 
   129         CXnNewstickerControl(CXnNewstickerAdapter* aAdapter);
   148         CXnNewstickerControl(CXnNewstickerAdapter* aAdapter);
   130 
   149 
   131         void ConstructL();
   150         void ConstructL();
   137          * @param aBackwards Search backwards
   156          * @param aBackwards Search backwards
   138          * 
   157          * 
   139          * @return The next index that has content or -1 if nothing was found 
   158          * @return The next index that has content or -1 if nothing was found 
   140          */
   159          */
   141         TInt GetNextTitleWithContent( TInt aStartSearch, TBool aBackwards = EFalse ) const;
   160         TInt GetNextTitleWithContent( TInt aStartSearch, TBool aBackwards = EFalse ) const;
   142 
       
   143         /**
       
   144         * Checks is there any visible titles in array
       
   145         */
       
   146         TBool IsVisibleTitles() const;
       
   147         
   161         
   148     private:    // Data
   162     private:    // Data
   149         
   163         
   150         /**
   164         /**
   151         * The array for title texts
   165         * The array for title texts
   163          * Parent control adapter
   177          * Parent control adapter
   164          * Not own.
   178          * Not own.
   165          */	            
   179          */	            
   166         CXnNewstickerAdapter*       iAdapter;
   180         CXnNewstickerAdapter*       iAdapter;
   167         
   181         
   168 
   182         /**
   169 
   183         * is scroll looping activated
   170         
   184         */ 
       
   185         TBool                    iScrollLooping;
   171     };
   186     };
   172 
   187 
   173 #endif // XNNEWSTICKERCONTROL_H
   188 #endif // XNNEWSTICKERCONTROL_H
   174 
   189 
   175 // End of File
   190 // End of File