serviceproviders/sapi_sysinfo/sysinfoservice/src/sysinfo.cpp
branchRCL_3
changeset 65 0b68a1b0c15e
parent 42 92cfb77afb61
child 66 a9c0808a1095
equal deleted inserted replaced
64:1790c2f1027c 65:0b68a1b0c15e
  1384 //
  1384 //
  1385 EXPORT_C CStringList* CCameraInfo::MimeTypesList() const
  1385 EXPORT_C CStringList* CCameraInfo::MimeTypesList() const
  1386     {
  1386     {
  1387     return iMimeTypesList;
  1387     return iMimeTypesList;
  1388     }
  1388     }
  1389 
  1389 	
  1390 // --------------------------------------------------------------------
       
  1391 // CVideoDecDataList::CVideoDecDataList()
       
  1392 // Constructor.
       
  1393 // --------------------------------------------------------------------
       
  1394 //
       
  1395 CVideoDecDataList::CVideoDecDataList():CSysData(EVideoDecList)
       
  1396     {
       
  1397     }
       
  1398 
       
  1399 // --------------------------------------------------------------------
       
  1400 // CDriveList::~CDriveList()
       
  1401 // Destructor
       
  1402 // --------------------------------------------------------------------
       
  1403 //
       
  1404 CVideoDecDataList::~CVideoDecDataList()
       
  1405     {
       
  1406     for(int i=0;i<iDecData.Count();i++)
       
  1407         delete iDecData[i];
       
  1408     }
       
  1409 
       
  1410 // --------------------------------------------------------------------
       
  1411 // CDriveList::NewL()
       
  1412 // Two-phased constructor. returns new instance of this class.
       
  1413 // --------------------------------------------------------------------
       
  1414 //
       
  1415 CVideoDecDataList* CVideoDecDataList::NewL()
       
  1416     {
       
  1417     CVideoDecDataList* self;
       
  1418     self = new (ELeave) CVideoDecDataList();
       
  1419     CleanupStack::PushL(self);
       
  1420     self->ConstructL();
       
  1421     CleanupStack::Pop(self);
       
  1422     return self;
       
  1423     }
       
  1424 
       
  1425 // --------------------------------------------------------------------
       
  1426 // CDriveList::ConstructL()
       
  1427 // 2nd phase construtor
       
  1428 // --------------------------------------------------------------------
       
  1429 //
       
  1430 void CVideoDecDataList::ConstructL()
       
  1431     {
       
  1432     }
       
  1433 
       
  1434 void CVideoDecDataList::AppendL(CVideoDecData *entry)
       
  1435     {
       
  1436     iDecData.AppendL(entry);
       
  1437     }
       
  1438 // --------------------------------------------------------------------
       
  1439 // CDriveList::[]
       
  1440 // gets drive number at specified index.
       
  1441 // --------------------------------------------------------------------
       
  1442 //
       
  1443 EXPORT_C CVideoDecDataList::CVideoDecData *CVideoDecDataList::operator[](TInt aIndex) const
       
  1444     {
       
  1445     if(0 <= aIndex && aIndex<iDecData.Count())
       
  1446         return iDecData[aIndex];
       
  1447     else
       
  1448         return NULL;
       
  1449     }
       
  1450 
       
  1451 // --------------------------------------------------------------------
       
  1452 // CDriveList::Count
       
  1453 // returns number of drives.
       
  1454 // --------------------------------------------------------------------
       
  1455 //
       
  1456 EXPORT_C TInt CVideoDecDataList::Count() const
       
  1457     {
       
  1458     return iDecData.Count();
       
  1459     }
       
  1460 // End of file.		
  1390 // End of file.