phonebookengines/contactsmodel/tsrc/T_GROUPS.CPP
changeset 24 0ba2181d7c28
parent 0 e686773b3f54
equal deleted inserted replaced
0:e686773b3f54 24:0ba2181d7c28
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 /*
     2 // All rights reserved.
     2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 // This component and the accompanying materials are made available
     3 * All rights reserved.
     4 // under the terms of "Eclipse Public License v1.0"
     4 * This component and the accompanying materials are made available
     5 // which accompanies this distribution, and is available
     5 * under the terms of "Eclipse Public License v1.0"
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 * which accompanies this distribution, and is available
     7 //
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 // Initial Contributors:
     8 *
     9 // Nokia Corporation - initial contribution.
     9 * Initial Contributors:
    10 //
    10 * Nokia Corporation - initial contribution.
    11 // Contributors:
    11 *
    12 //
    12 * Contributors:
    13 // Description:
    13 *
    14 //
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
    15 
    18 
    16 #include <e32test.h>
    19 #include <e32test.h>
    17 #include <f32file.h>
    20 #include <f32file.h>
    18 #include <s32file.h>
    21 #include <s32file.h>
    19 
    22 
    24 #include <cntfldst.h>
    27 #include <cntfldst.h>
    25 #include <bautils.h>
    28 #include <bautils.h>
    26 #include <barsc.h>
    29 #include <barsc.h>
    27 #include <barsread.h>
    30 #include <barsread.h>
    28 #include <cntmodel.rsg>
    31 #include <cntmodel.rsg>
    29 #include "T_UTILS.H"
    32 #include "t_utils.h"
    30 #include <hal.h>
    33 #include <hal.h>
    31 #include "CntClient.h"
    34 #include "cntclient.h"
    32 
    35 
    33 #pragma warning(disable:4239) // group label warning
    36 #pragma warning(disable:4239) // group label warning
    34 
    37 
    35 CCntTest* CntTest=NULL;
    38 CCntTest* CntTest=NULL;
    36 LOCAL_D RTest test(_L("T_GROUPS"));
    39 LOCAL_D RTest test(_L("T_GROUPS"));
    53 #define KCardFamilyName _L("Family Name #%d")
    56 #define KCardFamilyName _L("Family Name #%d")
    54 #define KCardFieldText _L("Card id %d, text field #%d")
    57 #define KCardFieldText _L("Card id %d, text field #%d")
    55 #define KCardFieldEditedText _L("UPDATED Card id %d, text field #%d")
    58 #define KCardFieldEditedText _L("UPDATED Card id %d, text field #%d")
    56 
    59 
    57 
    60 
    58 //
    61 //////////////////////////////////////////////////////////////////////////
    59 //
    62 //
    60 //	SUPPORT MODULES 
    63 //	SUPPORT MODULES 
    61 //
    64 //
    62 //
    65 //////////////////////////////////////////////////////////////////////////
    63 
    66 
    64 GLDEF_C void Panic(TInt aPanic)
    67 GLDEF_C void Panic(TInt aPanic)
    65 //
    68 //
    66 // Panic the thread with CNTMODEL as the category
    69 // Panic the thread with CNTMODEL as the category
    67 //
    70 //
   162 	test.Printf(_L("\n"));	
   165 	test.Printf(_L("\n"));	
   163 	//test.Getch();
   166 	//test.Getch();
   164 	}
   167 	}
   165 
   168 
   166 
   169 
   167 //
   170 //////////////////////////////////////////////////////////////////////////
   168 //
   171 //
   169 //	TEST MODULES 
   172 //	TEST MODULES 
   170 //
   173 //
   171 //
   174 //////////////////////////////////////////////////////////////////////////
   172 
   175 
   173 
   176 
   174 LOCAL_C void CreateBasicContactGroups()
   177 LOCAL_C void CreateBasicContactGroups()
   175 	{
   178 	{
   176 	test.Next(_L("Create Basic Groups"));
   179 	test.Next(_L("Create Basic Groups"));
   875 	CContactItem* tempGroup = database->CreateContactGroupL(_L("New Group"));
   878 	CContactItem* tempGroup = database->CreateContactGroupL(_L("New Group"));
   876 	delete tempGroup;
   879 	delete tempGroup;
   877 	CleanupStack::PopAndDestroy(database);
   880 	CleanupStack::PopAndDestroy(database);
   878 	}	
   881 	}	
   879 
   882 
   880 //
   883 //////////////////////////////////////////////////////////////////////////
   881 //
   884 //
   882 //	MAIN DISPATCH MODULE
   885 //	MAIN DISPATCH MODULE
   883 //
   886 //
   884 //
   887 //////////////////////////////////////////////////////////////////////////
   885 
   888 
   886 /**
   889 /**
   887 
   890 
   888 @SYMTestCaseID     PIM-T-GROUPS-0001
   891 @SYMTestCaseID     PIM-T-GROUPS-0001
   889 
   892