radioengine/utils/src/cradiosystemeventdetector.cpp
changeset 39 ac7857bd5fdb
parent 38 f8c3d4e6102c
equal deleted inserted replaced
38:f8c3d4e6102c 39:ac7857bd5fdb
    19 #include <e32std.h> // Define before audiopolicy defs
    19 #include <e32std.h> // Define before audiopolicy defs
    20 #include <eikdef.h>
    20 #include <eikdef.h>
    21 
    21 
    22 #ifndef __WINS__
    22 #ifndef __WINS__
    23 
    23 
    24 #include <audiopolicypubsubdata.h>
    24 //#include <audiopolicypubsubdata.h>
    25 #include <audiosw_pubsubkeys.h>
    25 //#include <audiosw_pubsubkeys.h>
       
    26 #include <AudioClientsListPSKeys.h>
    26 
    27 
    27 #endif //__WINS__
    28 #endif //__WINS__
    28 
    29 
    29 #include <ctsydomainpskeys.h>
    30 #include <ctsydomainpskeys.h>
    30 #include <publicruntimeids.hrh>
    31 #include <publicruntimeids.hrh>
    34 #include "cradioenginelogger.h"
    35 #include "cradioenginelogger.h"
    35 #include "cradiosystemeventdetector.h"
    36 #include "cradiosystemeventdetector.h"
    36 #include "mradiosystemeventdetectorobserver.h"
    37 #include "mradiosystemeventdetectorobserver.h"
    37 
    38 
    38 /** Granularity for audio category arrays. */
    39 /** Granularity for audio category arrays. */
    39 const TInt KVRAudioCategoryArrayGranularity = 3;
    40 //const TInt KVRAudioCategoryArrayGranularity = 3;
    40 
    41 
    41 // This has to be the last include. 
    42 // This has to be the last include. 
    42 #ifdef STUB_CONSTELLATION
    43 #ifdef STUB_CONSTELLATION
    43 #   include "RadioStubManager.h"
    44 #   include "RadioStubManager.h"
    44 #   define KUidSystemCategory KStub_KUidSystemCategory
    45 #   define KUidSystemCategory KStub_KUidSystemCategory
    82                                                         KPSUidCtsyCallInformation,
    83                                                         KPSUidCtsyCallInformation,
    83                                                         KCTsyCallState,
    84                                                         KCTsyCallState,
    84                                                         CRadioPropertyObserver::ERadioPropertyInt );
    85                                                         CRadioPropertyObserver::ERadioPropertyInt );
    85     iCallStatusObserver->ActivateL();
    86     iCallStatusObserver->ActivateL();
    86     iIsCallActive = iCallStatusObserver->ValueInt() != EPSCTsyCallStateNone;
    87     iIsCallActive = iCallStatusObserver->ValueInt() != EPSCTsyCallStateNone;
    87 
    88 /*
    88 #ifndef __WINS__
    89 #ifndef __WINS__
    89     // Define audio types for not resuming.
    90     // Define audio types for not resuming.
    90     //TODO: Check these audio resume categories!
    91     //TODO: Check these audio resume categories!
    91     iNoAutoResumeAudioCategories = RArray<TInt>( KVRAudioCategoryArrayGranularity );
    92     iNoAutoResumeAudioCategories = RArray<TInt>( KVRAudioCategoryArrayGranularity );
    92     iNoAutoResumeAudioCategories.AppendL( ECatMediaPlayer );
    93     iNoAutoResumeAudioCategories.AppendL( ECatMediaPlayer );
    95     iNoAutoResumeAudioCategories.Compress();
    96     iNoAutoResumeAudioCategories.Compress();
    96     // Start listening audio client events.
    97     // Start listening audio client events.
    97     iAudioPolicyObserver = CRadioPropertyObserver::NewL( *this, KPSUidMMFAudioServer, KAudioPolicyAudioClients, CRadioPropertyObserver::ERadioPropertyByteArray );
    98     iAudioPolicyObserver = CRadioPropertyObserver::NewL( *this, KPSUidMMFAudioServer, KAudioPolicyAudioClients, CRadioPropertyObserver::ERadioPropertyByteArray );
    98     iAudioPolicyObserver->ActivateL();
    99     iAudioPolicyObserver->ActivateL();
    99 #endif
   100 #endif
       
   101 */
   100     }
   102     }
   101 
   103 
   102 // ---------------------------------------------------------------------------
   104 // ---------------------------------------------------------------------------
   103 //
   105 //
   104 // ---------------------------------------------------------------------------
   106 // ---------------------------------------------------------------------------