idlehomescreen/xmluicontroller/inc/transactionfactory.h
branchRCL_3
changeset 26 1b758917cafc
parent 0 f72a12da539e
equal deleted inserted replaced
25:137ebc85284b 26:1b758917cafc
    62     /**
    62     /**
    63     * Creates a new text transaction element.
    63     * Creates a new text transaction element.
    64     *
    64     *
    65     * @param aTarget the target node of the transaction element
    65     * @param aTarget the target node of the transaction element
    66     * @param aText the text to update 
    66     * @param aText the text to update 
       
    67     * @param aPriority Priority
    67     */
    68     */
    68     virtual MTransactionElement*
    69     virtual MTransactionElement* CreateTextTransactionElementL( 
    69         CreateTextTransactionElementL( CXnNodeAppIf& aTarget,
    70         CXnNodeAppIf& aTarget, const TDesC& aText, TInt aPriority ) = 0;                                       
    70                                        const TDesC& aText,
       
    71                                        TInt aPriority ) = 0;
       
    72 
    71 
    73     /**
    72     /**
    74     * Creates a new data buffer transaction element.
    73     * Creates a new data buffer transaction element.
    75     *
    74     *
    76     * @param aTarget the traget node of the transaction element
    75     * @param aTarget the traget node of the transaction element
    77     * @param aData the data to update
    76     * @param aData the data to update
       
    77     * @param aPriority Priority
       
    78     * @param aCid Content selector id
       
    79     * @param aIndex Content index
    78     */
    80     */
    79     virtual MTransactionElement*
    81     virtual MTransactionElement* CreateDataBufferTransactionElementL( 
    80         CreateDataBufferTransactionElementL( CXnNodeAppIf& aTarget,
    82         CXnNodeAppIf& aTarget, const TDesC8& aData, TInt aPriority, const TDesC& aCid, TInt aIndex ) = 0;
    81                                              const TDesC8& aData,
    83     
    82                                              TInt aPriority ) = 0;
    84     /**
    83 
    85     * Creates a new data buffer transaction element.
       
    86     *
       
    87     * @param aTarget the traget node of the transaction element
       
    88     * @param aData the data to update
       
    89     * @param aPriority Priority    
       
    90     */
       
    91     virtual MTransactionElement* CreateDataBufferTransactionElementL( 
       
    92         CXnNodeAppIf& aTarget, const TDesC8& aData, TInt aPriority ) = 0;
       
    93         
    84     /**
    94     /**
    85     * Creates a new empty content transaction element.
    95     * Creates a new empty content transaction element.
    86     *
    96     *
    87     * @param aTarget the target node of the transaction element
    97     * @param aTarget the target node of the transaction element
    88     * @param aText the text to update 
    98     * @param aText the text to update 
    89     */
    99     */
    90     virtual MTransactionElement*
   100     virtual MTransactionElement* CreateEmptyContentTransactionElementL( 
    91         CreateEmptyContentTransactionElementL( CXnNodeAppIf& aTarget,
   101         CXnNodeAppIf& aTarget, TInt aIndex ) = 0;
    92                                                TInt aIndex ) = 0;
       
    93 
   102 
    94     /**
   103     /**
    95     * Creates a new image transaction element.
   104     * Creates a new image transaction element.
    96     *
   105     *
    97     * @param aTarget the target node of the transaction element
   106     * @param aTarget the target node of the transaction element
    98     * @param aIcon the icon to update. Ownership transferred.
   107     * @param aIcon the icon to update. Ownership transferred.
       
   108     * @param aPriority Priority
    99     */
   109     */
   100     virtual MTransactionElement*
   110     virtual MTransactionElement* CreateImageTransactionElementL( 
   101         CreateImageTransactionElementL( CXnNodeAppIf& aTarget,
   111         CXnNodeAppIf& aTarget, CGulIcon* aIcon, TInt aPriority ) = 0;
   102                                         CGulIcon* aIcon,
       
   103                                         TInt aPriority ) = 0;
       
   104     
   112     
   105     /**
   113     /**
   106     * Creates a new image transaction element.
   114     * Creates a new image transaction element.
   107     *
   115     *
   108     * @param aTarget the target node of the transaction element
   116     * @param aTarget the target node of the transaction element
   109     * @param aFile the file to read image data from.
   117     * @param aFile the file to read image data from.
       
   118     * @param aPriority Priority
   110     */
   119     */
   111     virtual MTransactionElement*
   120     virtual MTransactionElement* CreateImageTransactionElementL( 
   112         CreateImageTransactionElementL( CXnNodeAppIf& aTarget,
   121         CXnNodeAppIf& aTarget, RFile& aFile, TInt aPriority ) = 0;
   113                                         RFile& aFile,
       
   114                                         TInt aPriority ) = 0;
       
   115 
   122 
       
   123     /**
       
   124     * Creates a new newsticker transaction element.
       
   125     *
       
   126     * @param aTarget the target node of the transaction element
       
   127     * @param aText the text to update     
       
   128     * @param aPriority Priority
       
   129     * @param aIndex Newsticker title index
       
   130     */
       
   131     virtual MTransactionElement* CreateNewsTickerTransactionElementL( 
       
   132         CXnNodeAppIf& aTarget, const TDesC& aText, TInt aPriority, TInt aIndex ) = 0;
       
   133                                                         
   116     /**
   134     /**
   117     * Releases a transaction element.
   135     * Releases a transaction element.
   118     *
   136     *
   119     * @param aElement the element to release.
   137     * @param aElement the element to release.
   120     */
   138     */
   126     *
   144     *
   127     * @param aTarget the target UI element.
   145     * @param aTarget the target UI element.
   128     * @param aContentType the content type
   146     * @param aContentType the content type
   129     * @return ETrue if content type is supported, otherwise EFalse.
   147     * @return ETrue if content type is supported, otherwise EFalse.
   130     */
   148     */
   131     virtual TBool IsSupported( CXnNodeAppIf& aTarget,
   149     virtual TBool IsSupported( 
   132                                const TDesC8& aContentType ) = 0;
   150         CXnNodeAppIf& aTarget, const TDesC8& aContentType ) = 0;                               
   133 
   151 
   134 protected:
   152 protected:
   135 
   153 
   136     ~MTransactionFactory(){};
   154     ~MTransactionFactory(){};        
   137         
       
   138     };
   155     };
   139 
   156 
   140 } // namespace AiXmlUiController
   157 } // namespace AiXmlUiController
   141 
   158 
   142 #endif      // M_TRANSACTIONFACTORY_H  
   159 #endif      // M_TRANSACTIONFACTORY_H