btobexprofiles/obexsendservices/obexservicesendutils/inc/BTSController.h
author hgs
Mon, 12 Jul 2010 18:51:05 +0300
changeset 42 b72428996822
parent 32 19bd632b5100
permissions -rw-r--r--
201025
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
32
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2007-2007 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description:  Profile controller interface
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
hgs
parents:
diff changeset
    18
hgs
parents:
diff changeset
    19
hgs
parents:
diff changeset
    20
#ifndef C_BTPROFILECONTROLLER_H
hgs
parents:
diff changeset
    21
#define C_BTPROFILECONTROLLER_H
hgs
parents:
diff changeset
    22
hgs
parents:
diff changeset
    23
hgs
parents:
diff changeset
    24
#include <e32base.h> 
hgs
parents:
diff changeset
    25
hgs
parents:
diff changeset
    26
#include "BTServiceClient.h"
hgs
parents:
diff changeset
    27
hgs
parents:
diff changeset
    28
hgs
parents:
diff changeset
    29
class CBTServiceClient;
hgs
parents:
diff changeset
    30
hgs
parents:
diff changeset
    31
/**
hgs
parents:
diff changeset
    32
 *  ProfileControllerIntreface definition 
hgs
parents:
diff changeset
    33
 * 
hgs
parents:
diff changeset
    34
 *  @endcode
hgs
parents:
diff changeset
    35
 *
hgs
parents:
diff changeset
    36
 *  @lib ?library
hgs
parents:
diff changeset
    37
 *  @since S60 v.3.2
hgs
parents:
diff changeset
    38
 */
hgs
parents:
diff changeset
    39
NONSHARABLE_CLASS (CBTSController) : public CBase
hgs
parents:
diff changeset
    40
    {
hgs
parents:
diff changeset
    41
hgs
parents:
diff changeset
    42
public: 
hgs
parents:
diff changeset
    43
hgs
parents:
diff changeset
    44
    CBTSController(); 
hgs
parents:
diff changeset
    45
    /**
hgs
parents:
diff changeset
    46
     * Destructor.
hgs
parents:
diff changeset
    47
     */
hgs
parents:
diff changeset
    48
    virtual ~CBTSController();
hgs
parents:
diff changeset
    49
hgs
parents:
diff changeset
    50
    /**
hgs
parents:
diff changeset
    51
     * Abort command to client
hgs
parents:
diff changeset
    52
     *
hgs
parents:
diff changeset
    53
     * @since S60 v.3.2     
hgs
parents:
diff changeset
    54
     * @return None
hgs
parents:
diff changeset
    55
     */
hgs
parents:
diff changeset
    56
     void Abort( );
42
hgs
parents: 32
diff changeset
    57
     
hgs
parents: 32
diff changeset
    58
     
hgs
parents: 32
diff changeset
    59
     virtual void SendUnSupportedFiles();
32
hgs
parents:
diff changeset
    60
hgs
parents:
diff changeset
    61
protected:
hgs
parents:
diff changeset
    62
    
hgs
parents:
diff changeset
    63
    /**
hgs
parents:
diff changeset
    64
     * Create client
hgs
parents:
diff changeset
    65
     *
hgs
parents:
diff changeset
    66
     * @since S60 v.3.2     
hgs
parents:
diff changeset
    67
     * @return None
hgs
parents:
diff changeset
    68
     */
hgs
parents:
diff changeset
    69
     void CreateClientL(MBTServiceClientObserver* aObserver,
hgs
parents:
diff changeset
    70
                       const TBTDevAddr& aRemoteDevice,
hgs
parents:
diff changeset
    71
                       const TUint aRemotePort,
hgs
parents:
diff changeset
    72
                       RArray<CObexHeader*> aHeaderList );    
hgs
parents:
diff changeset
    73
hgs
parents:
diff changeset
    74
hgs
parents:
diff changeset
    75
protected: // data
hgs
parents:
diff changeset
    76
hgs
parents:
diff changeset
    77
    /**
hgs
parents:
diff changeset
    78
     * Service client
hgs
parents:
diff changeset
    79
     * Not own. 
hgs
parents:
diff changeset
    80
     */
hgs
parents:
diff changeset
    81
    CBTServiceClient*           iClient;
hgs
parents:
diff changeset
    82
hgs
parents:
diff changeset
    83
    };
hgs
parents:
diff changeset
    84
hgs
parents:
diff changeset
    85
hgs
parents:
diff changeset
    86
#endif // C_BTPROFILECONTROLLER_H