Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 13:26, 24 June 2008.

MDesCArray

From Forum Nokia Wiki

MDesCArray is a very simple but powerful M class. It simply defines an interface to an array of descriptors.

There are two versions of it; 16-bit MDesC16Array and 8-bit MDesC8Array. MDesCArray is a macro that points to the 16-bit version in unicode builds and to the 8-bit version in the older builds.

The interface defines three things:

  • Virtual destructor so the array can be deleted through the interface pointer.
  • Function to get the item count:
virtual TInt MdcaCount() const = 0;
  • Function to get a particular item in the array:
virtual TPtrC MdcaPoint( TInt aIndex ) const = 0;

The beauty of it

What makes it so powerful is how it can be used to make a data source out of any class. The base class for all Symbian listboxes CEikListBox and more specifically its model uses MDesCArray to access the listbox lines. This means that any class that implements the interface can be given to any listbox as a data source as long as the descriptors it returns conform to the format of the listbox.

Related Discussions
Thread Thread Starter Forum Replies Last Post
Problem with Multiselection Listbox in DIALOG ( checkbox ) vemulakiran Symbian User Interface 0 2006-01-12 12:59
changing icons in a list ddhungry Symbian User Interface 1 2002-11-26 00:23
changing icons in a list ddhungry General Symbian C++ 0 2002-11-25 07:55
CAknMarkableListDialog Makablelist Problem pistha General Symbian C++ 0 2007-10-22 09:09
What's wrong help me.. sriramadasu General Symbian C++ 4 2006-10-31 06:26
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX