pimprotocols/pbap/client/pbapcli.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Bluetooth Phone Book Access Profile (PBAP) client side API header file.
       
    15 // Describes the PBAP API for use by clients of PBAP server.
       
    16 // 
       
    17 //
       
    18 
       
    19 /**
       
    20  @file
       
    21  @publishedPartner
       
    22  @released
       
    23 */
       
    24 
       
    25 #ifndef PBAPCLI_H
       
    26 #define PBAPCLI_H
       
    27 
       
    28 #include <e32base.h>
       
    29 
       
    30 // Macros used for Memory checking functionality
       
    31 #ifdef _DEBUG
       
    32 #define DEBUG_SEND_RECIEVE(opcode, args) SendReceive(opcode, args);
       
    33 #else
       
    34 #define DEBUG_SEND_RECIEVE(opcode, args) KErrNotSupported;
       
    35 #endif
       
    36 
       
    37 /**
       
    38  Provides client side access to the PBAP server.
       
    39  
       
    40  @publishedPartner
       
    41  @released
       
    42  */
       
    43 class RPbapSession : public RSessionBase
       
    44 	{
       
    45 public:
       
    46 	IMPORT_C RPbapSession();
       
    47 	IMPORT_C TInt Connect();
       
    48 	IMPORT_C TInt Start();
       
    49 	IMPORT_C void Stop();
       
    50 	IMPORT_C TInt SetPassword(const TDesC& aPassword);
       
    51 	
       
    52 	//
       
    53 	// Memory checking functionality for Debug builds only.
       
    54 	//
       
    55 	IMPORT_C TInt __DbgMarkHeap();
       
    56 	IMPORT_C TInt __DbgCheckHeap(TInt aCount);
       
    57 	IMPORT_C TInt __DbgMarkEnd(TInt aCount);
       
    58 	IMPORT_C TInt __DbgFailNext(TInt aCount);	
       
    59 
       
    60 private:
       
    61 	TVersion Version() const;
       
    62 	
       
    63 private:
       
    64 	// This data padding has been added to help prevent future binary compatibility breaks
       
    65 	// iPadding hasn't been zero'd because it is currently not used
       
    66 	TUint32 iPadding;	
       
    67 	};
       
    68 
       
    69 #endif //PBAPCLI_H