kernel/eka/drivers/hcr/hcr_pil.h
changeset 47 46fffbe7b5a7
parent 45 329ab0095843
equal deleted inserted replaced
46:0bf4040442f9 47:46fffbe7b5a7
   119 	             * During initialization it sets the member variable pointer iSa
   119 	             * During initialization it sets the member variable pointer iSa
   120 	             * to NULL. 
   120 	             * to NULL. 
   121 	             */
   121 	             */
   122 	            inline TSa() :iSa(NULL){}
   122 	            inline TSa() :iSa(NULL){}
   123 	            
   123 	            
   124 	            /**
   124 	           
   125 	             *  Costructor with a pointer initialization with 
       
   126 	             * already allocated pointer.
       
   127 	             * The member variable pointer iSa is initialized with the 
       
   128 	             * pointer provided by function parameter. Ownership is moved to
       
   129 	             * safe pointer object and source pointer is reset to NULL.
       
   130 	             * 
       
   131 	             * @param  aP      Pointer to a heap allocated array of element 
       
   132 	             *                 with type T. 
       
   133 	             */
       
   134 	            inline TSa(T* aP) {iSa = aP;}
       
   135 	            
       
   136 	            /**
   125 	            /**
   137 	             *  operator()() returns an address to the array  
   126 	             *  operator()() returns an address to the array  
   138 	             * maintained by this SafeArray object.
   127 	             * maintained by this SafeArray object.
   139 	             * It can be usefull when it's necessary to get the pointer  
   128 	             * It can be usefull when it's necessary to get the pointer  
   140 	             * value, for instance passing as function parameter.
   129 	             * value, for instance passing as function parameter.
   164 	             * @param  aIndex      Position of the element within SafeArray
   153 	             * @param  aIndex      Position of the element within SafeArray
   165 	             * @return             Reference to the element from the array
   154 	             * @return             Reference to the element from the array
   166 	             */
   155 	             */
   167 	            inline T& operator[](TInt aIndex){return *(iSa + aIndex);}
   156 	            inline T& operator[](TInt aIndex){return *(iSa + aIndex);}
   168 	            
   157 	            
   169 	            /**
   158 	           	             
   170 	             *  operator[]() - constant version. Returns the constant 
       
   171 	             * reference to the element of the array.
       
   172 	             * @param  aIndex      Position of the element within SafeArray
       
   173 	             * @return             Constant reference to the element from 
       
   174 	             *                     array 
       
   175 	             */
       
   176 	            inline const T& operator[](TInt aIndex) const {return *(iSa + aIndex);}
       
   177 	           
       
   178 	             
       
   179 	            /**
   159 	            /**
   180 	             *  Destructor
   160 	             *  Destructor
   181 	             */
   161 	             */
   182 	            ~TSa();
   162 	            ~TSa();
   183 	                
   163 	                
   185 	        private:
   165 	        private:
   186 	            /**
   166 	            /**
   187 	             *  Copy constructor must not be called explicitly by the
   167 	             *  Copy constructor must not be called explicitly by the
   188 	             * code
   168 	             * code
   189 	             */
   169 	             */
   190 	            inline TSa(TSa& aSa){}
   170 	            inline TSa(TSa& aSa);
   191 	            
   171 	            
   192 	        protected:
   172 	        protected:
   193 	            /**< Pointer to the allocated heap array*/
   173 	            /**< Pointer to the allocated heap array*/
   194 	            T*     iSa;
   174 	            T*     iSa;
   195 	        };
   175 	        };
   542         
   522         
   543        
   523        
   544         // Setting accessor methods
   524         // Setting accessor methods
   545         virtual TBool IsWordValue(const TSettingRef& aRef);
   525         virtual TBool IsWordValue(const TSettingRef& aRef);
   546         virtual TBool IsLargeValue(const TSettingRef& aRef);
   526         virtual TBool IsLargeValue(const TSettingRef& aRef);
   547         virtual void GetId(const TSettingRef& aRef, TCategoryUid& aCat, TElementId& aKey);
       
   548         virtual void GetId(const TSettingRef& aRef, SSettingId& aId);
   527         virtual void GetId(const TSettingRef& aRef, SSettingId& aId);
   549         virtual TInt32 GetType(const TSettingRef& aRef);
   528         virtual TInt32 GetType(const TSettingRef& aRef);
   550         virtual TUint16 GetLength(const TSettingRef& aRef);
   529         virtual TUint16 GetLength(const TSettingRef& aRef);
   551         
   530         
   552         virtual void GetSettingInfo(const TSettingRef& aRef, 
   531         virtual void GetSettingInfo(const TSettingRef& aRef,