libtelepathy/tsrc/inc/telepathygabblefetchcontacts.h
changeset 10 59927b2d3b75
parent 0 d0f3a028347a
equal deleted inserted replaced
0:d0f3a028347a 10:59927b2d3b75
     1 /*
       
     2 * Copyright (c) 2008 - 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:    Class declaration for Fetch Test Cases.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19  
       
    20 
       
    21 //Include files
       
    22 #include <e32err.h>
       
    23 #include <e32const.h>
       
    24 #include <e32base.h>
       
    25 
       
    26 #include <glib.h>
       
    27 
       
    28 #ifndef DBUS_API_SUBJECT_TO_CHANGE
       
    29 #define DBUS_API_SUBJECT_TO_CHANGE
       
    30 #endif
       
    31 
       
    32 
       
    33 //Include files
       
    34 #include <e32err.h>
       
    35 #include <e32const.h>
       
    36 #include <e32base.h>
       
    37 
       
    38 #include <stdio.h>
       
    39 #include <stdlib.h>
       
    40 #include <string.h>
       
    41 #include <signal.h>
       
    42 
       
    43 #include <dbus/dbus-glib.h>
       
    44 
       
    45 #include <glib.h>
       
    46 	   
       
    47 #include <unistd.h>
       
    48 
       
    49 #include "tp-conn.h"
       
    50 #include "tp-connmgr.h"
       
    51 #include "tp-chan.h"
       
    52 #include "tp-chan-gen.h"
       
    53 #include "tp-ch-gen.h"
       
    54 #include "tp-chan-iface-group-gen.h"
       
    55 #include "tp-chan-type-text-gen.h"
       
    56 #include "tp-chan-type-streamed-media-gen.h"
       
    57 #include "tp-props-iface.h"
       
    58 #include "tp-constants.h"
       
    59 #include "tp-interfaces.h"
       
    60 
       
    61 #include <pthread.h>
       
    62 //for the global data
       
    63 #include "telepathygabbletestdata.h"
       
    64 
       
    65 
       
    66 const guint KMaxContactFetchCount = 500;
       
    67 
       
    68 
       
    69 // FORWARD DECLARATION
       
    70 class CTelepathyGabbleLoginTest;
       
    71 
       
    72 
       
    73 // CLASS DECLARATION
       
    74 NONSHARABLE_CLASS(CTelepathyGabbleFetchContacts) : public CBase
       
    75     {
       
    76   
       
    77    private:
       
    78     	/**
       
    79         * C++ default constructor.
       
    80         */
       
    81        
       
    82         CTelepathyGabbleFetchContacts();
       
    83 
       
    84         /**
       
    85         * By default Symbian 2nd phase constructor is private.
       
    86         */
       
    87         void ConstructL();
       
    88         
       
    89    public:  // Constructors and destructor
       
    90         /**
       
    91         * Two-phased constructor.
       
    92         */
       
    93         static CTelepathyGabbleFetchContacts* NewL();
       
    94 
       
    95         /**
       
    96         * Destructor.
       
    97         */
       
    98         ~CTelepathyGabbleFetchContacts();
       
    99    
       
   100     public: // Member functions
       
   101  		TInt  test_request_roster ( CTestData* aTestData );
       
   102 		
       
   103 	public : //Callback functions
       
   104  
       
   105  		static void get_roster_member_cb( DBusGProxy *proxy,GArray* current_members, GArray* local_pending_members, GArray* remote_pending_members, GError *error, gpointer userdata );
       
   106 		static void inspect_handles_cb( DBusGProxy *proxy,char **handles_names, GError *error, gpointer userdata ) ;
       
   107 		
       
   108 	
       
   109 	
       
   110 			
       
   111  };