creator/src/creator_message.cpp
changeset 11 4df3a095718c
parent 0 d6fe6244b863
equal deleted inserted replaced
10:e6e3e87d58b4 11:4df3a095718c
    19 
    19 
    20 #include "creator_message.h" 
    20 #include "creator_message.h" 
    21 #include "creator_traces.h"
    21 #include "creator_traces.h"
    22 #include "creator_contactsetcache.h"
    22 #include "creator_contactsetcache.h"
    23 #include <apgcli.h>
    23 #include <apgcli.h>
    24 #include <MuiuMsvUiServiceUtilities.h>
    24 
    25 
    25 //#include <MuiuServiceUtilities.h>
    26 #if(!defined __SERIES60_30__ && !defined __SERIES60_31__)
    26 
       
    27 #if(!defined __SERIES60_30__ && !defined __SERIES60_31__ && SYMBIAN_VERSION_SUPPORT < SYMBIAN_4)
    27 #include <MVPbkFieldType.h>
    28 #include <MVPbkFieldType.h>
    28 #include <MVPbkContactOperationBase.h>
    29 #include <MVPbkContactOperationBase.h>
    29 #include <MVPbkStoreContactFieldCollection.h>
    30 #include <MVPbkStoreContactFieldCollection.h>
    30 #include <MVPbkContactFieldTextData.h>
    31 #include <MVPbkContactFieldTextData.h>
    31 #include <CVPbkContactManager.h>
    32 #include <CVPbkContactManager.h>
   130     delete iParameters;
   131     delete iParameters;
   131     delete iWaiter;
   132     delete iWaiter;
   132     delete iTmpPhoneNumber;
   133     delete iTmpPhoneNumber;
   133     delete iTmpEmail;
   134     delete iTmpEmail;
   134     delete iAttachments;
   135     delete iAttachments;
   135 #if(!defined __SERIES60_30__ && !defined __SERIES60_31__)
   136 #if(!defined __SERIES60_30__ && !defined __SERIES60_31__ && SYMBIAN_VERSION_SUPPORT < SYMBIAN_4)
   136     delete iExistingContacts;
   137     delete iExistingContacts;
   137     if( iContactManager )
   138     if( iContactManager )
   138     	iContactManager->ContactStoresL().CloseAll(*this);
   139     	iContactManager->ContactStoresL().CloseAll(*this);
   139     delete iContactManager;
   140     delete iContactManager;
   140     delete iTempContact;
   141     delete iTempContact;
   473         // BIO message type (from bitsids.h)  // TO-DO: add support for all BIO message types...
   474         // BIO message type (from bitsids.h)  // TO-DO: add support for all BIO message types...
   474         parameters->iBIOMessageType = KUidBIOBusinessCardMsg;
   475         parameters->iBIOMessageType = KUidBIOBusinessCardMsg;
   475         }
   476         }
   476     
   477     
   477     
   478     
   478 #if(!defined __SERIES60_30__ && !defined __SERIES60_31__)
   479 #if(!defined __SERIES60_30__ && !defined __SERIES60_31__ && SYMBIAN_VERSION_SUPPORT < SYMBIAN_4)
   479     
   480     
   480     // Get number of existing senders and recipients:
   481     // Get number of existing senders and recipients:
   481     for( TInt i = 0; i < parameters->iRecipientLinkIds.Count(); ++i )
   482     for( TInt i = 0; i < parameters->iRecipientLinkIds.Count(); ++i )
   482         {       
   483         {       
   483         
   484         
  1820         RPointerArray<HBufC>& aAddressArray, 
  1821         RPointerArray<HBufC>& aAddressArray, 
  1821         const RArray<TLinkIdParam>& aLinkIds, 
  1822         const RArray<TLinkIdParam>& aLinkIds, 
  1822         TBool aUseEmailAddress,
  1823         TBool aUseEmailAddress,
  1823         TInt aNumOfExistingAddresses )
  1824         TInt aNumOfExistingAddresses )
  1824     {
  1825     {
  1825 #if(!defined __SERIES60_30__ && !defined __SERIES60_31__)
  1826 #if(!defined __SERIES60_30__ && !defined __SERIES60_31__ && SYMBIAN_VERSION_SUPPORT < SYMBIAN_4)
  1826     
  1827     
  1827     if( aNumOfExistingAddresses > 0 || aLinkIds.Count() > 0 )
  1828     if( aNumOfExistingAddresses > 0 || aLinkIds.Count() > 0 )
  1828         {
  1829         {
  1829         // First create contact manager:
  1830         // First create contact manager:
  1830         if( iContactManager == 0)
  1831         if( iContactManager == 0)
  1947         }
  1948         }
  1948 #endif
  1949 #endif
  1949 }
  1950 }
  1950 
  1951 
  1951 //----------------------------------------------------------------------------
  1952 //----------------------------------------------------------------------------
  1952 #if(!defined __SERIES60_30__ && !defined __SERIES60_31__)
  1953 #if(!defined __SERIES60_30__ && !defined __SERIES60_31__ && SYMBIAN_VERSION_SUPPORT < SYMBIAN_4)
  1953 void CCreatorMessages::VPbkSingleContactOperationComplete(
  1954 void CCreatorMessages::VPbkSingleContactOperationComplete(
  1954             MVPbkContactOperationBase& /*aOperation*/,
  1955             MVPbkContactOperationBase& /*aOperation*/,
  1955             MVPbkStoreContact* aContact )
  1956             MVPbkStoreContact* aContact )
  1956     {
  1957     {
  1957     LOGSTRING("Creator: CCreatorMessages::VPbkSingleContactOperationComplete" );
  1958     LOGSTRING("Creator: CCreatorMessages::VPbkSingleContactOperationComplete" );