S60 3rd Edition SDK for Symbian OS
Example Applications Guide

SIPExResolverPlugin.h

00001 /*
00002 * ==============================================================================
00003 *  Name        : SIPExResolverPlugin.h
00004 *  Part of     : SIPExResolverPlugin
00005 *  Interface   : 
00006 *  Description : 
00007 *  Version     : 
00008 *
00009 *  Copyright (c) 2005-2006 Nokia Corporation.
00010 *  This material, including documentation and any related 
00011 *  computer programs, is protected by copyright controlled by 
00012 *  Nokia Corporation.
00013 * ==============================================================================
00014 */
00015 
00016 #ifndef __CSIPEXRESOLVERPLUGIN_H__
00017 #define __CSIPEXRESOLVERPLUGIN_H__
00018 
00019 // INCLUDES
00020 #include <apgcli.h>
00021 #include <SipResolvedClient.h>
00022 
00023 
00024 const TInt32 KSIPExResolverPluginUID = 0xA00001EC;
00025 
00026 // CLASS DEFINITION
00027 
00028 /**
00029 * CSIPExResolverPlugin implements a simple plugin for testing ClientResolver.
00030 */
00031 class CSIPExResolverPlugin : public CSIPResolvedClient
00032         {
00033         public: // Constructors and destructor
00034 
00035                 static CSIPExResolverPlugin* NewL();
00036                 
00037                 /// Destructor
00038                 ~CSIPExResolverPlugin();
00039 
00040         public: // from CSIPResolvedClient
00041         
00042             TUid ChannelL( RStringF aMethod,
00043                        const TDesC8& aRequestUri,
00044                        const RPointerArray<CSIPHeaderBase>& aHeaders,
00045                        const TDesC8& aContent,
00046                        const CSIPContentTypeHeader* aContentType=0);
00047 
00048                 void ConnectL( TUid aUid );
00049                 
00050                 const TDesC8& Capabilities();
00051 
00052         private: // Constructors
00053 
00054                 inline CSIPExResolverPlugin() {}
00055                 
00056                 // Second phase constructor
00057                 void ConstructL(); 
00058         
00059         private: // New functions
00060 
00061                 // Needed for cleanup of a RImplInfoPtrArray:
00062                 static void ResetAndDestroy( TAny* anArray );
00063 
00064                 // Name
00065                 RApaLsSession iApaSession;
00066                 TApaAppInfo iAppInfo;
00067                 
00068                 TUid iApplicationUID;
00069         };
00070 
00071 #endif // __CSIPEXRESOLVERPLUGIN_H__

© Nokia 2006

Back to top