idlehomescreen/inc/xnnodeimpl.h
branchRCL_3
changeset 11 ff572dfe6d86
parent 0 f72a12da539e
equal deleted inserted replaced
9:f966699dea19 11:ff572dfe6d86
    31 class CXnType;
    31 class CXnType;
    32 class CXnPropertyList;
    32 class CXnPropertyList;
    33 class CXnProperty;
    33 class CXnProperty;
    34 class CXnNode;
    34 class CXnNode;
    35 class CXnUiEngine;
    35 class CXnUiEngine;
    36 class CGridPropertyCache;
       
    37 class CLayoutPropertyCache;
    36 class CLayoutPropertyCache;
    38 class CXnDomNode;
    37 class CXnDomNode;
    39 class CXnScrollableControlAdapter;
    38 class CXnScrollableControlAdapter;
    40 
    39 
    41 namespace XnComponentInterface
    40 namespace XnComponentInterface
   795      * Get property as indicated by method name.
   794      * Get property as indicated by method name.
   796      *
   795      *
   797      * @see GetPropertyL
   796      * @see GetPropertyL
   798      * @return The property mapped to the key or NULL if not found.
   797      * @return The property mapped to the key or NULL if not found.
   799      */
   798      */
   800     CXnProperty* VisibleRowsL();
       
   801 
       
   802     /**
       
   803      * Get property as indicated by method name.
       
   804      *
       
   805      * @see GetPropertyL
       
   806      * @return The property mapped to the key or NULL if not found.
       
   807      */
       
   808     CXnProperty* GridColumnsL();
       
   809 
       
   810     /**
       
   811      * Get property as indicated by method name.
       
   812      *
       
   813      * @see GetPropertyL
       
   814      * @return The property mapped to the key or NULL if not found.
       
   815      */
       
   816     CXnProperty* GridOrientationL();
       
   817 
       
   818     /**
       
   819      * Get property as indicated by method name.
       
   820      *
       
   821      * @see GetPropertyL
       
   822      * @return The property mapped to the key or NULL if not found.
       
   823      */
       
   824     CXnProperty* GridVerDirectionL();
       
   825 
       
   826     /**
       
   827      * Get property as indicated by method name.
       
   828      *
       
   829      * @see GetPropertyL
       
   830      * @return The property mapped to the key or NULL if not found.
       
   831      */
       
   832     CXnProperty* GridHorDirectionL();
       
   833 
       
   834     /**
       
   835      * Get property as indicated by method name.
       
   836      *
       
   837      * @see GetPropertyL
       
   838      * @return The property mapped to the key or NULL if not found.
       
   839      */
       
   840     CXnProperty* FocusHorLoopingL();
       
   841 
       
   842     /**
       
   843      * Get property as indicated by method name.
       
   844      *
       
   845      * @see GetPropertyL
       
   846      * @return The property mapped to the key or NULL if not found.
       
   847      */
       
   848     CXnProperty* FocusVerLoopingL();
       
   849 
       
   850     /**
       
   851      * Get property as indicated by method name.
       
   852      *
       
   853      * @see GetPropertyL
       
   854      * @return The property mapped to the key or NULL if not found.
       
   855      */
       
   856     CXnProperty* ZIndexL();
   799     CXnProperty* ZIndexL();
   857 
   800 
   858     /**
   801     /**
   859      * Get property as indicated by method name.
   802      * Get property as indicated by method name.
   860      *
   803      *
   876      *
   819      *
   877      * @see GetPropertyL
   820      * @see GetPropertyL
   878      * @return The property mapped to the key or NULL if not found.
   821      * @return The property mapped to the key or NULL if not found.
   879      */
   822      */
   880     CXnProperty* BackgroundImageL();
   823     CXnProperty* BackgroundImageL();
   881 
       
   882     /**
       
   883      * Get property as indicated by method name.
       
   884      *
       
   885      * @see GetPropertyL
       
   886      * @return The property mapped to the key or NULL if not found.
       
   887      */
       
   888     CXnProperty* RefL();
       
   889 
       
   890     /**
       
   891      * Get property as indicated by method name.
       
   892      *
       
   893      * @see GetPropertyL
       
   894      * @return The property mapped to the key or NULL if not found.
       
   895      */
       
   896     CXnProperty* GridScrollBarMarginL();
       
   897 
       
   898     /**
       
   899      * Get property as indicated by method name.
       
   900      *
       
   901      * @see GetPropertyL
       
   902      * @return The property mapped to the key or NULL if not found.
       
   903      */
       
   904     CXnProperty* GridScrollBarWidthL();
       
   905 
   824 
   906     /**
   825     /**
   907      * Sets the pointer of DOM node
   826      * Sets the pointer of DOM node
   908      *
   827      *
   909      * @since S60 3.1
   828      * @since S60 3.1
   949      *
   868      *
   950      * @since Series 60 3.2
   869      * @since Series 60 3.2
   951      * @param aFixedSize the node's size determined by layout algorithm
   870      * @param aFixedSize the node's size determined by layout algorithm
   952      */
   871      */
   953     void FixAdaptiveSizeL( const TSize& aFixedSize );
   872     void FixAdaptiveSizeL( const TSize& aFixedSize );
   954 
       
   955     /**
       
   956      * Callback which will be called by the CPeriodic.
       
   957      *
       
   958      * @param aPtr User defined pointer.
       
   959      * @return ETrue if the method should be called again.
       
   960      */
       
   961     static TInt PeriodicEventL( TAny* aPtr );
       
   962 
       
   963     /**
       
   964      * Returns a pointer to the periodic timer (for timed triggers).
       
   965      */
       
   966     CPeriodic* PeriodicTimer();
       
   967 
       
   968     /**
       
   969      * Creates a periodic timer (iPeriodicTimer).
       
   970      */
       
   971     void CreatePeriodicL();
       
   972 
       
   973     /**
       
   974      * Deletes a periodict timer (iPeriodicTimer)
       
   975      */
       
   976     void DeletePeriodic();
       
   977 
   873 
   978     /**
   874     /**
   979      * Marks node as dirty, adds it to UiEngine's dirty list and
   875      * Marks node as dirty, adds it to UiEngine's dirty list and
   980      * clears rendered and laidout from the node and its children.
   876      * clears rendered and laidout from the node and its children.
   981      *
   877      *
  1014 
   910 
  1015     /**
   911     /**
  1016      * Gets scrollable control.
   912      * Gets scrollable control.
  1017      */
   913      */
  1018     CXnScrollableControlAdapter* ScrollableControl();
   914     CXnScrollableControlAdapter* ScrollableControl();
  1019         
   915             
  1020 private:
   916 private:
  1021 
   917 
  1022     TInt DoSetPropertyL( CXnProperty* aPropery );
   918     TInt DoSetPropertyL( CXnProperty* aPropery );
  1023     TRect AdjustRectIfNeeded( TRect aRect );
   919     TRect AdjustRectIfNeeded( TRect aRect );
  1024 
   920 
  1127      * @see SetStateL
  1023      * @see SetStateL
  1128      */
  1024      */
  1129     RArray< CXnDomProperty::TPseudoClass > iStates;
  1025     RArray< CXnDomProperty::TPseudoClass > iStates;
  1130 
  1026 
  1131     /**
  1027     /**
  1132      * Local cache for property with name KRef.
       
  1133      * Not own.
       
  1134      */
       
  1135     CXnProperty* iRef;
       
  1136 
       
  1137     /**
       
  1138      * Local cache for property with name KName.
  1028      * Local cache for property with name KName.
  1139      * Not own.
  1029      * Not own.
  1140      */
  1030      */
  1141     CXnProperty* iName;
  1031     CXnProperty* iName;
  1142 
  1032 
  1179     /**
  1069     /**
  1180      * Local cache for property with name KMaskPath.
  1070      * Local cache for property with name KMaskPath.
  1181      * Not own.
  1071      * Not own.
  1182      */
  1072      */
  1183     CXnProperty* iMaskPath;
  1073     CXnProperty* iMaskPath;
  1184 
       
  1185     /**
       
  1186      * Local property cache.
       
  1187      * Own.
       
  1188      */
       
  1189     CGridPropertyCache* iGridPropertyCache;
       
  1190 
  1074 
  1191     /**
  1075     /**
  1192      * Local property cache.
  1076      * Local property cache.
  1193      * Own.
  1077      * Own.
  1194      */
  1078      */
  1214     /**    
  1098     /**    
  1215      * States, if the nodes width, height or both are content based.
  1099      * States, if the nodes width, height or both are content based.
  1216      */
  1100      */
  1217     TInt iAdaptive;
  1101     TInt iAdaptive;
  1218 
  1102 
  1219     /**
       
  1220      * The timer for the timed triggers.
       
  1221      * Own.
       
  1222      */
       
  1223     CPeriodic* iPeriodicTimer;
       
  1224     };
  1103     };
  1225 
  1104 
  1226 #endif
  1105 #endif