uifw/ganes/src/HgIndicatorManager.cpp
branchRCL_3
changeset 23 3d340a0166ff
parent 0 2f259fa3e83a
equal deleted inserted replaced
18:0aa5fbdfbc30 23:3d340a0166ff
    67     // Non-Skinned icons
    67     // Non-Skinned icons
    68     // Broken Playlist icon
    68     // Broken Playlist icon
    69     InitIconL( iBrokenPlaylistIcon, 
    69     InitIconL( iBrokenPlaylistIcon, 
    70             EMbmGanesQgn_graf_mup_lst_brokenplayl, 
    70             EMbmGanesQgn_graf_mup_lst_brokenplayl, 
    71             EMbmGanesQgn_graf_mup_lst_brokenplayl_mask, 
    71             EMbmGanesQgn_graf_mup_lst_brokenplayl_mask, 
    72             aIndicatorSize);
    72             aIndicatorSize );
    73     
    73     
    74     // Broken track icon
    74     // Broken track icon
    75     InitIconL( iBrokenTrackIcon, 
    75     InitIconL( iBrokenTrackIcon, 
    76             EMbmGanesQgn_graf_mup_lst_brokentrack, 
    76             EMbmGanesQgn_graf_mup_lst_brokentrack, 
    77             EMbmGanesQgn_graf_mup_lst_brokentrack_mask, 
    77             EMbmGanesQgn_graf_mup_lst_brokentrack_mask, 
    78             aIndicatorSize);
    78             aIndicatorSize );
    79     
    79     
    80     // Corrupted track icon
    80     // Corrupted track icon
    81     InitIconL( iCorruptedTrackIcon, 
    81     InitIconL( iCorruptedTrackIcon, 
    82             EMbmGanesQgn_graf_mup_lst_corrupttrack, 
    82             EMbmGanesQgn_graf_mup_lst_corrupttrack, 
    83             EMbmGanesQgn_graf_mup_lst_corrupttrack_mask, 
    83             EMbmGanesQgn_graf_mup_lst_corrupttrack_mask, 
    84             aIndicatorSize);
    84             aIndicatorSize );
    85     
    85     
    86     // New podcast icon 
    86     // New podcast icon 
    87     InitIconL( iNewPodcastIcon, 
    87     InitIconL( iNewPodcastIcon, 
    88             EMbmGanesQgn_graf_mup_lst_pdc_new, 
    88             EMbmGanesQgn_graf_mup_lst_pdc_new, 
    89             EMbmGanesQgn_graf_mup_lst_pdc_new_mask, 
    89             EMbmGanesQgn_graf_mup_lst_pdc_new_mask, 
    90             aIndicatorSize);
    90             aIndicatorSize );
    91     
    91     
    92     // Played podcast icon 
    92     // Played podcast icon 
    93     InitIconL( iPlayedPodcastIcon, 
    93     InitIconL( iPlayedPodcastIcon, 
    94             EMbmGanesQgn_graf_mup_lst_pdc_partplay, 
    94             EMbmGanesQgn_graf_mup_lst_pdc_partplay, 
    95             EMbmGanesQgn_graf_mup_lst_pdc_partplay_mask, 
    95             EMbmGanesQgn_graf_mup_lst_pdc_partplay_mask, 
    96             aIndicatorSize);
    96             aIndicatorSize );
    97 
    97 
    98     // Completely played podcast icon 
    98     // Completely played podcast icon 
    99     InitIconL( iCompletelyPlayedPodcastIcon, 
    99     InitIconL( iCompletelyPlayedPodcastIcon, 
   100             EMbmGanesQgn_graf_mup_lst_pdc_compplay, 
   100             EMbmGanesQgn_graf_mup_lst_pdc_compplay, 
   101             EMbmGanesQgn_graf_mup_lst_pdc_compplay_mask, 
   101             EMbmGanesQgn_graf_mup_lst_pdc_compplay_mask, 
   102             aIndicatorSize);
   102             aIndicatorSize );
       
   103 
       
   104     // Video icon
       
   105     InitIconL( iVideoIcon,
       
   106             EMbmGanesQgn_indi_media_thumbnail, 
       
   107             EMbmGanesQgn_indi_media_thumbnail_mask, 
       
   108             aIndicatorSize );
   103 
   109 
   104     // Skinned icons
   110     // Skinned icons
   105     // Mark icon
   111     // Mark icon
   106     InitIconL( iMarkIcon, KAknsIIDQgnPropSubMarked, 
   112     InitIconL( iMarkIcon, KAknsIIDQgnPropSubMarked, 
   107             EMbmGanesQgn_prop_sub_marked, 
   113             EMbmGanesQgn_prop_sub_marked, 
   108             EMbmGanesQgn_prop_sub_marked_mask, 
   114             EMbmGanesQgn_prop_sub_marked_mask, 
   109             aIndicatorSize);
   115             aIndicatorSize );
   110     
   116 
   111     // Video icon
       
   112     InitIconL( iVideoIcon, KAknsIIDQgnPropFileVideo,
       
   113             EMbmGanesQgn_prop_file_video, 
       
   114             EMbmGanesQgn_prop_file_video_mask, 
       
   115             aIndicatorSize);
       
   116     
       
   117     // DRM valid icon
   117     // DRM valid icon
   118     InitIconL( iDrmIcon, KAknsIIDQgnPropDrmRightsValidSuper, 
   118     InitIconL( iDrmIcon, KAknsIIDQgnPropDrmRightsValidSuper, 
   119             EMbmGanesQgn_prop_drm_rights_valid_super, 
   119             EMbmGanesQgn_prop_drm_rights_valid_super, 
   120             EMbmGanesQgn_prop_drm_rights_valid_super_mask, 
   120             EMbmGanesQgn_prop_drm_rights_valid_super_mask, 
   121             aIndicatorSize);
   121             aIndicatorSize );
   122     
   122     
   123     // DRM expired icon
   123     // DRM expired icon
   124     InitIconL( iDrmExpIcon, KAknsIIDQgnPropDrmRightsExpSuper, 
   124     InitIconL( iDrmExpIcon, KAknsIIDQgnPropDrmRightsExpSuper, 
   125             EMbmGanesQgn_prop_drm_rights_exp_super, 
   125             EMbmGanesQgn_prop_drm_rights_exp_super, 
   126             EMbmGanesQgn_prop_drm_rights_exp_super_mask, 
   126             EMbmGanesQgn_prop_drm_rights_exp_super_mask, 
   127             aIndicatorSize);
   127             aIndicatorSize );
   128     
   128     
   129     // Playback icon
   129     // Playback icon
   130     InitIconL( iPlaybackIndicatorIcon, KAknsIIDQgnIndiMupPlay, 
   130     InitIconL( iPlaybackIndicatorIcon, KAknsIIDQgnIndiMupPlay, 
   131             EMbmGanesQgn_indi_mup_play, 
   131             EMbmGanesQgn_indi_mup_play, 
   132             EMbmGanesQgn_indi_mup_play_mask, 
   132             EMbmGanesQgn_indi_mup_play_mask, 
   133             aIndicatorSize);
   133             aIndicatorSize );
   134     
   134     
   135     // Pause icon
   135     // Pause icon
   136     InitIconL( iPauseIndicatorIcon, KAknsIIDQgnIndiMupPause, 
   136     InitIconL( iPauseIndicatorIcon, KAknsIIDQgnIndiMupPause, 
   137             EMbmGanesQgn_indi_mup_pause, 
   137             EMbmGanesQgn_indi_mup_pause, 
   138             EMbmGanesQgn_indi_mup_pause_mask, 
   138             EMbmGanesQgn_indi_mup_pause_mask, 
   139             aIndicatorSize);
   139             aIndicatorSize );
   140     
   140     
   141     // New Video icon
   141     // New Video icon
   142     InitIconL( iNewVideoIcon, KAknsIIDQgnPropFmgrFileVideo, 
   142     InitIconL( iNewVideoIcon, KAknsIIDQgnPropFmgrFileVideo, 
   143             EMbmGanesQgn_prop_fmgr_file_video, 
   143             EMbmGanesQgn_prop_fmgr_file_video, 
   144             EMbmGanesQgn_prop_fmgr_file_video_mask, 
   144             EMbmGanesQgn_prop_fmgr_file_video_mask, 
   145             aIndicatorSize);
   145             aIndicatorSize );
   146     
   146     
   147     // Phone memory icon
   147     // Phone memory icon
   148     InitIconL( iPhoneStorageIcon, KAknsIIDQgnPropPhoneMemc, 
   148     InitIconL( iPhoneStorageIcon, KAknsIIDQgnPropPhoneMemc, 
   149             EMbmGanesQgn_prop_phone_memc, 
   149             EMbmGanesQgn_prop_phone_memc, 
   150             EMbmGanesQgn_prop_phone_memc_mask, 
   150             EMbmGanesQgn_prop_phone_memc_mask, 
   151             aIndicatorSize);
   151             aIndicatorSize );
   152 
   152 
   153     // MMC memory icon
   153     // MMC memory icon
   154     InitIconL( iMmcIcon, KAknsIIDQgnPropMmcMemc, 
   154     InitIconL( iMmcIcon, KAknsIIDQgnPropMmcMemc, 
   155             EMbmGanesQgn_prop_mmc_memc, 
   155             EMbmGanesQgn_prop_mmc_memc, 
   156             EMbmGanesQgn_prop_mmc_memc_mask, 
   156             EMbmGanesQgn_prop_mmc_memc_mask, 
   157             aIndicatorSize);
   157             aIndicatorSize );
   158     
   158     
   159     // Mass memory icon
   159     // Mass memory icon
   160     InitIconL( iMassStorageIcon, KAknsIIDQgnPropFmgrMsSmall, 
   160     InitIconL( iMassStorageIcon, KAknsIIDQgnPropFmgrMsSmall, 
   161             EMbmGanesQgn_prop_fmgr_ms_small, 
   161             EMbmGanesQgn_prop_fmgr_ms_small, 
   162             EMbmGanesQgn_prop_fmgr_ms_small_mask, 
   162             EMbmGanesQgn_prop_fmgr_ms_small_mask, 
   163             aIndicatorSize);
   163             aIndicatorSize );
   164 
   164 
   165     // Move up icon
   165     // Move up icon
   166     InitIconL( iMoveUpIcon, KAknsIIDQgnGrafMupAdtlReorderUp, 
   166     InitIconL( iMoveUpIcon, KAknsIIDQgnGrafMupAdtlReorderUp, 
   167             EMbmGanesQgn_graf_mup_adtl_reorder_up, 
   167             EMbmGanesQgn_graf_mup_adtl_reorder_up, 
   168             EMbmGanesQgn_graf_mup_adtl_reorder_up_mask, 
   168             EMbmGanesQgn_graf_mup_adtl_reorder_up_mask, 
   169             aIndicatorSize);
   169             aIndicatorSize );
   170     
   170     
   171     // Move down icon
   171     // Move down icon
   172     InitIconL( iMoveDownIcon, KAknsIIDQgnGrafMupAdtlReorderDown, 
   172     InitIconL( iMoveDownIcon, KAknsIIDQgnGrafMupAdtlReorderDown, 
   173             EMbmGanesQgn_graf_mup_adtl_reorder_down, 
   173             EMbmGanesQgn_graf_mup_adtl_reorder_down, 
   174             EMbmGanesQgn_graf_mup_adtl_reorder_down_mask, 
   174             EMbmGanesQgn_graf_mup_adtl_reorder_down_mask, 
   175             aIndicatorSize);
   175             aIndicatorSize );
   176     
   176     
   177     // Move updown icon
   177     // Move updown icon
   178     InitIconL( iMoveUpDownIcon, KAknsIIDQgnGrafMupAdtlReorderUpdown, 
   178     InitIconL( iMoveUpDownIcon, KAknsIIDQgnGrafMupAdtlReorderUpdown, 
   179             EMbmGanesQgn_graf_mup_adtl_reorder_updown, 
   179             EMbmGanesQgn_graf_mup_adtl_reorder_updown, 
   180             EMbmGanesQgn_graf_mup_adtl_reorder_updown_mask, 
   180             EMbmGanesQgn_graf_mup_adtl_reorder_updown_mask, 
   181             aIndicatorSize);
   181             aIndicatorSize );
   182     }
   182     }
   183 
   183 
   184 void CHgIndicatorManager::DrawIndicators( 
   184 void CHgIndicatorManager::DrawIndicators( 
   185         CWindowGc& aGc,
   185         CWindowGc& aGc,
   186         const TRect& aRect,
   186         const TRect& aRect,