imservices/ossprotocoladaptation/inc/mossprotocolconnectionmanager.h
changeset 46 860cd8a5168c
parent 35 085f765766a0
equal deleted inserted replaced
35:085f765766a0 46:860cd8a5168c
     1 /*
       
     2 * Copyright (c) 2007-2008 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 "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:  oss protocol plugin connection manager interface
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __MOSSCONNNECTIONMANAGERCONTROL_H__
       
    19 #define __MOSSCONNNECTIONMANAGERCONTROL_H__
       
    20 
       
    21 
       
    22 // FORWARD DECLARATIONS
       
    23 
       
    24 class MXIMPProtocolConnectionHost;
       
    25 class CXmppParameters;
       
    26 class CWaitTimer;
       
    27 class MProtocolImDataHost;
       
    28 class MProtocolSearchDataHost;
       
    29 class CSearchKeyStore;
       
    30 class CAddContactNotificationHandler;
       
    31 class COSSContactManager;
       
    32 /**
       
    33  * MOSSProtocolConnectionManager
       
    34  *
       
    35  * Telepathy Plugin Connection Manager's Interface
       
    36  *
       
    37  */
       
    38 class MOSSProtocolConnectionManager
       
    39     {
       
    40 
       
    41 public:
       
    42 
       
    43     /**
       
    44      * ?description
       
    45      *
       
    46      * access to xmpp settings 
       
    47      * @return handle to xmppparameter
       
    48      */
       
    49 	virtual CXmppParameters& XmppParams() = 0;
       
    50     /**
       
    51      * access to protocol data handler
       
    52      * @return protocol data handler
       
    53      */
       
    54 		virtual CWaitTimer& DataHandler() = 0;
       
    55     /**
       
    56      * access to protocol connection host
       
    57      * @return protocol connection host
       
    58      */
       
    59     virtual MXIMPProtocolConnectionHost& HandleToHost() = 0;
       
    60     /**
       
    61      * creates datahanlder
       
    62      * @return access point
       
    63      *
       
    64      */    
       
    65     virtual void ManufactureDataHandlerL() = 0;
       
    66     /**
       
    67      * check the data handler creation
       
    68      * @return ETrue,if datahandler created,else EFalse
       
    69      */ 
       
    70         
       
    71 	virtual TDesC& UserName() = 0;
       
    72 	/**
       
    73 	 *
       
    74 	 * @return Passwor
       
    75 	 */
       
    76 	virtual TDesC& Password() = 0;
       
    77 	/**
       
    78 	 * @return GroupId
       
    79 	 */
       
    80 	virtual TDesC& GroupId() =0 ;
       
    81 	/**
       
    82 	 * @return ServiceName
       
    83 	 */
       
    84 	virtual const TDesC& ServiceName() = 0;   	
       
    85 	/**
       
    86 	 * sets the groupid
       
    87 	 * @param aGroupId : group id to be set
       
    88 	 */
       
    89 	virtual void SetGroupIDL(TDesC& aGroupId) = 0;
       
    90 	/**
       
    91 	 * gets the contactmanager
       
    92 	 * @return iContactManager
       
    93 	 */
       
    94 	virtual COSSContactManager& GetContactManager() = 0;
       
    95 	/**
       
    96 	 * @return authorised list
       
    97 	 */
       
    98 	virtual RArray<HBufC>* PresenceAuthGrantReqList() = 0;
       
    99 	/**
       
   100 	 * @return im data host
       
   101 	 */
       
   102 	virtual MProtocolImDataHost& GetImHost() = 0;
       
   103 	/**
       
   104 	 * @return add notification handler
       
   105 	 */
       
   106 	virtual CAddContactNotificationHandler& GetAddNotificationHandler() = 0;
       
   107 	/**
       
   108 	 * @return search data host
       
   109 	 */
       
   110 	virtual MProtocolSearchDataHost& GetSearchHost() = 0;
       
   111 	/**
       
   112 	 * @return search key store
       
   113 	 */
       
   114 	virtual CSearchKeyStore& GetSearchKeyStore() = 0;
       
   115    
       
   116 protected:
       
   117 
       
   118     /**
       
   119      * Protected destructor.
       
   120      * Instancies can't be destroyed via this interface.
       
   121      */
       
   122     virtual ~MOSSProtocolConnectionManager() {}
       
   123 
       
   124     };
       
   125 
       
   126 #endif // __MOSSCONNNECTIONMANAGERCONTROL_H__
       
   127 
       
   128