cbsref/telephonyrefplugins/atltsy/integrationtest/src/testltsysmsshareddata.cpp
branchRCL_3
changeset 65 630d2f34d719
equal deleted inserted replaced
61:17af172ffa5f 65:630d2f34d719
       
     1 // TestTelephonySmsSharedData.cpp
       
     2 // Copyright (c) Symbian Software Ltd 2008. All rights reserved.
       
     3 //
       
     4 // Implementation of the Class CTestTelephonySmsSharedData
       
     5 
       
     6 // CTSY include
       
     7 
       
     8 // user include
       
     9 #include "TestLtsySmsSharedData.h"
       
    10 
       
    11 /**
       
    12  * Constructor
       
    13  * 
       
    14  */
       
    15 CTestLtsySmsSharedData::CTestLtsySmsSharedData()
       
    16 	{
       
    17 	}
       
    18 
       
    19 /**
       
    20  * Factory function to create a new CTestLtsySmsSharedData object
       
    21  * 
       
    22  */
       
    23 CTestLtsySmsSharedData*CTestLtsySmsSharedData:: NewL()
       
    24 	{
       
    25 	CTestLtsySmsSharedData* self = new (ELeave) CTestLtsySmsSharedData();
       
    26 	CleanupStack::PushL(self);
       
    27 	self->ConstructL();
       
    28 	CleanupStack::Pop();
       
    29 	return self;
       
    30 	}
       
    31 
       
    32 /**
       
    33  * Destructor
       
    34  * 
       
    35  */
       
    36 CTestLtsySmsSharedData::~CTestLtsySmsSharedData()
       
    37 	{
       
    38 	Reset();
       
    39 	}
       
    40 
       
    41 /**
       
    42  * Delete all message, message store objects
       
    43  * 
       
    44  */
       
    45 void CTestLtsySmsSharedData::Reset()
       
    46 	{
       
    47 	for(TInt i = iMessaging.Count()-1; i >= 0; i--)
       
    48 		{
       
    49 		iMessaging[i].Close();
       
    50 		}
       
    51 	
       
    52 	for(TInt j = iSmsStore.Count()-1; j >= 0; j--)
       
    53 		{
       
    54 		iSmsStore[j].Close();
       
    55 		}
       
    56 	
       
    57 	iMessaging.Reset();
       
    58 	iSmsStore.Reset();
       
    59 	}
       
    60 
       
    61 /**
       
    62  * ConstructL
       
    63  * 
       
    64  */
       
    65 void CTestLtsySmsSharedData::ConstructL()
       
    66 	{
       
    67 	}
       
    68 
       
    69 /**
       
    70  * return sms array
       
    71  * 
       
    72  */
       
    73 RArray<RMobileSmsMessaging>& CTestLtsySmsSharedData::SmsMessagingArray()
       
    74 	{
       
    75 	return iMessaging;
       
    76 	}
       
    77 
       
    78 /**
       
    79  * return sms store array
       
    80  * 
       
    81  */
       
    82 RArray<RMobileSmsStore>& CTestLtsySmsSharedData::SmsStoreArray()
       
    83 	{
       
    84 	return iSmsStore;
       
    85 	}
       
    86 
       
    87 // end of file