1908 } |
1908 } |
1909 if(iLastOperation == ENSMLFetchOp) |
1909 if(iLastOperation == ENSMLFetchOp) |
1910 { |
1910 { |
1911 iWriteStream.Close(); |
1911 iWriteStream.Close(); |
1912 User::RequestComplete( iCallerStatus, aError ); |
1912 User::RequestComplete( iCallerStatus, aError ); |
1913 } |
1913 } |
1914 else if(iLastOperation == ENSmlRetrieveOp) |
1914 else if (iLastOperation == ENSMLUpdateExportOp) |
1915 { |
1915 { |
1916 User::RequestComplete( iCallerStatus, aError ); |
1916 iWriteStream.Close(); |
1917 } |
1917 delete iMergeItem; |
1918 } |
1918 iMergeItem = NULL; |
|
1919 User::RequestComplete( iCallerStatus, aError ); |
|
1920 } |
|
1921 else if (iLastOperation == ENSMLUpdateImportOp) |
|
1922 { |
|
1923 if(iBatchMode) |
|
1924 { |
|
1925 iResultArray->Append( aError ); |
|
1926 } |
|
1927 delete iBuf; |
|
1928 iBuf = NULL; |
|
1929 iReadStream.Close(); |
|
1930 iIndex++; |
|
1931 if(iIndex == iContactsBufferItemList.Count() ) |
|
1932 { |
|
1933 ResetBuffer(); |
|
1934 User::RequestComplete( iCallerStatus, aError ); |
|
1935 } |
|
1936 else |
|
1937 { |
|
1938 _DBG_FILE("VPbkSingleContactOperationFailed, Continuing to complete the Batch Operation"); |
|
1939 ExecuteBufferL(); |
|
1940 } |
|
1941 } |
|
1942 else if(iLastOperation == ENSmlRetrieveOp) |
|
1943 { |
|
1944 iRetrieveCount--; |
|
1945 if(iBatchMode) |
|
1946 { |
|
1947 iResultArray->AppendL( aError ); |
|
1948 } |
|
1949 iIndex++; |
|
1950 if(iIndex == iContactsBufferItemList.Count() ) |
|
1951 { |
|
1952 ResetBuffer(); |
|
1953 User::RequestComplete( iCallerStatus, aError ); |
|
1954 } |
|
1955 else if(!iRetrieveCount) |
|
1956 { |
|
1957 _DBG_FILE("VPbkSingleContactOperationFailed, Continuing to complete the Batch Operation"); |
|
1958 ExecuteBufferL(); |
|
1959 } |
|
1960 } |
|
1961 else |
|
1962 { |
|
1963 _DBG_FILE("VPbkSingleContactOperationFailed, No Matching LastOperation Completing the Operation"); |
|
1964 User::RequestComplete( iCallerStatus, aError ); |
|
1965 } |
|
1966 _DBG_FILE("CNSmlContactsDataStore::VPbkSingleContactOperationFailed(): end"); |
|
1967 } |
1919 // --------------------------------------------------------------------------- |
1968 // --------------------------------------------------------------------------- |
1920 // CNSmlContactsDataStore::VPbkSingleContactOperationFailed |
1969 // CNSmlContactsDataStore::VPbkSingleContactOperationFailed |
1921 // --------------------------------------------------------------------------- |
1970 // --------------------------------------------------------------------------- |
1922 // |
1971 // |
1923 void CNSmlContactsDataStore::SingleContactOperationCompleteL( |
1972 void CNSmlContactsDataStore::SingleContactOperationCompleteL( |