messagingfw/biomsgfw/BioWatchers/Inc/NbsWatcher.h
changeset 62 db3f5fa34ec7
parent 0 8e480a14352b
equal deleted inserted replaced
60:9f5ae1728557 62:db3f5fa34ec7
       
     1 // Copyright (c) 1999-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 // BIO-message SMS Port Watcher
       
    15 // 
       
    16 //
       
    17 
       
    18 #ifndef NBS_WATCHER_H_
       
    19 #define NBS_WATCHER_H_
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <es_sock.h>
       
    23 #include <smsuaddr.h>
       
    24 #include "SmsWatcher.h"
       
    25 
       
    26 class CWatcherLog;
       
    27 
       
    28 // Constants
       
    29 const TUid KUidNbsSmsWatcher = {0x10005543};
       
    30 
       
    31 // Export this First!
       
    32 //IMPORT_C TInt WinsMain(TAny* /*aParam*/);
       
    33 
       
    34 //
       
    35 // Data types
       
    36 class CNbsWatcher : public CSmsBaseWatcher
       
    37 	{
       
    38 public:
       
    39 	static CNbsWatcher* NewL(TAny* aWatcherParams);
       
    40 	virtual ~CNbsWatcher();
       
    41 private:
       
    42 	void StartL();
       
    43 	CNbsWatcher(RFs& aFs, CWatcherLog& aLog);
       
    44 	CBaseSmsActiveSocketWatcher* CreateSocketWatcherLC(const TUid aBioUid, const TBioMsgId& aBioMsg);
       
    45 	void ConstructL();
       
    46 	TBool SupportBioMsgId(const TBioMsgId& aBioMsg) const;
       
    47 	void SetupSpecialWatcherL(TSmsAddrFamily aAddrFamily);
       
    48 	void AddBifL(TUid aBioID);
       
    49 	
       
    50 private:
       
    51 	CBaseSmsActiveSocketWatcher* iReceiveAnySocket;
       
    52 		
       
    53 	};
       
    54 
       
    55 #endif