libtelepathy/tsrc/inc/telepathygabblepresencetest.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 Presence 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 #include <dbus/dbus-glib.h>
       
    33 	   
       
    34 #include <unistd.h>
       
    35 
       
    36 #include "tp-conn.h"
       
    37 #include "tp-connmgr.h"
       
    38 #include "tp-chan.h"
       
    39 #include "tp-chan-gen.h"
       
    40 #include "tp-ch-gen.h"
       
    41 #include "tp-chan-iface-group-gen.h"
       
    42 #include "tp-chan-type-text-gen.h"
       
    43 #include "tp-chan-type-streamed-media-gen.h"
       
    44 #include "tp-props-iface.h"
       
    45 #include "tp-constants.h"
       
    46 #include "tp-interfaces.h"
       
    47 
       
    48 #include "tp-conn-iface-presence-gen.h"
       
    49 
       
    50 #include <stdio.h>
       
    51 #include <stdlib.h>
       
    52 #include <string.h>
       
    53 #include <signal.h>
       
    54 
       
    55 #include "telepathy-presence.h"
       
    56 
       
    57 // FORWARD DECLARATION
       
    58 class CTestData;
       
    59 
       
    60 
       
    61 #define VERBOSE
       
    62 
       
    63 
       
    64 // CLASS DECLARATION
       
    65 NONSHARABLE_CLASS(CTelepathyGabblePresenceTest) : public CBase
       
    66     {
       
    67     
       
    68     private:
       
    69     	/**
       
    70         * C++ default constructor.
       
    71         */
       
    72        
       
    73         CTelepathyGabblePresenceTest();
       
    74 
       
    75         /**
       
    76         * By default Symbian 2nd phase constructor is private.
       
    77         */
       
    78         void ConstructL();
       
    79         
       
    80    public:  // Constructors and destructor
       
    81         /**
       
    82         * Two-phased constructor.
       
    83         */
       
    84         static CTelepathyGabblePresenceTest* NewL();
       
    85 
       
    86         /**
       
    87         * Destructor.
       
    88         */
       
    89         ~CTelepathyGabblePresenceTest();
       
    90     public: //members
       
    91     
       
    92     	TpConn *iTpConn;
       
    93 			
       
    94 	public : 
       
    95 	
       
    96 		//presence related functions
       
    97 
       
    98 		 static TelepathyPresenceState telepathy_presence_state_from_str (const gchar *str);
       
    99 		 void telepathy_contacts_send_presence (DBusGProxy *pres_iface,
       
   100 					 TelepathyPresence *presence/*, CTestData *aTestData*/);
       
   101 				
       
   102 		 	 
       
   103 		 static void telepathy_presences_foreach (gpointer *key,gpointer *value,
       
   104 		      									TelepathyPresence **presence);
       
   105 		      
       
   106 		      
       
   107 		 //Callback functions
       
   108 		 static void telepathy_presence_handle_foreach (gpointer  *key,gpointer *value);
       
   109 		      
       
   110 		 void telepathy_presence_handler(DBusGProxy *proxy,GHashTable *handle_hash);
       
   111 		 
       
   112 
       
   113  };
       
   114 
       
   115 
       
   116 
       
   117 
       
   118 
       
   119 
       
   120