commondrm/drmutility/inc/drmutilitysecondarydisplay.h
changeset 0 95b198f216e5
equal deleted inserted replaced
-1:000000000000 0:95b198f216e5
       
     1 /*
       
     2 * Copyright (c) 2007 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:  The set of messages provided to Secondary Display software by
       
    15 *              : DRMUtility
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef T_DRMUTILITYSECONDARYDISPLAY_H
       
    21 #define T_DRMUTILITYSECONDARYDISPLAY_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 // The category UID for the messages in this header file.
       
    27 // UID of the DrmUtilityCommon.Dll
       
    28 const TUid KUidCoverUiCategoryDrmUtility = { 0x10283302 };
       
    29 
       
    30 /*
       
    31 * ==============================================================================
       
    32 * Dialogs shown by DrmUtility. These messages are handled using the
       
    33 * Secondary Display support in Avkon.
       
    34 * ==============================================================================
       
    35 */
       
    36 enum TSecondaryDisplayDRMUtilityDialogs
       
    37     {
       
    38     ECover_dialog_cancel = 1,
       
    39     ECover_confirmation_query,
       
    40     ECover_waiting_rights_confirmation_query,
       
    41     ECover_usage_rights_expired_buy_new,
       
    42     ECover_usage_rights_expired,
       
    43     ECover_no_usage_rights_buy_new,
       
    44     ECover_no_usage_rights,
       
    45     ECover_database_corrupted,
       
    46     ECover_set_automated,
       
    47     ECover_activate_and_set_automated,
       
    48     ECover_cal_alert_invalid_sim_buy_new,
       
    49     ECover_cal_alert_expired_buy_new,
       
    50     ECover_cal_alert_expired,
       
    51     ECover_clock_alarm_invalid_sim_buy_new,
       
    52     ECover_clock_alarm_expired_buy_new,
       
    53     ECover_clock_alarm_expired,
       
    54     ECover_email_tone_expired_buy_new,
       
    55     ECover_email_tone_invalid_sim_buy_new,
       
    56     ECover_email_tone_expired,
       
    57     ECover_im_tone_expired_buy_new,
       
    58     ECover_im_tone_expired,
       
    59     ECover_message_tone_invalid_sim_buy_new,
       
    60     ECover_message_tone_expired_buy_new,
       
    61     ECover_message_tone_expired,
       
    62     ECover_ringing_tone_expired_buy_new,
       
    63     ECover_ringing_tone_invalid_sim_buy_new,
       
    64     ECover_ringing_tone_expired,
       
    65     ECover_screensaver_invalid_sim_buy_new,
       
    66     ECover_screensaver_expired_buy_new,
       
    67     ECover_screensaver_expired,
       
    68     ECover_wallpaper_invalid_sim_buy_new,
       
    69     ECover_wallpaper_expired_buy_new,
       
    70     ECover_wallpaper_expired,
       
    71     ECover_theme_invalid_sim_buy_new,
       
    72     ECover_theme_expired_buy_new,
       
    73     ECover_theme_expired,
       
    74     ECover_usage_rights_in_future,
       
    75     ECover_activate_after_preview,
       
    76     ECover_waiting_for_rights,
       
    77     ECover_rights_should_have_come,
       
    78     ECover_rights_should_have_come_no_ri,
       
    79     ECover_automated_sd_invalid_sim,
       
    80     ECover_automated_sd_expired,
       
    81     ECover_automated_cd_expired,
       
    82     ECover_prev_audio_get_list_query,
       
    83     ECover_prev_video_get_list_query,
       
    84     ECover_prev_audio_play_list_query,
       
    85     ECover_prev_video_play_list_query,
       
    86     ECover_invalid_sim,
       
    87     ECover_audio_prev_get_list,
       
    88     ECover_video_prev_get_list,
       
    89     ECover_audio_prev_play_list,
       
    90     ECover_video_prev_play_list,
       
    91     ECover_r_silent_wait_note,
       
    92     ECover_usage_rights_expired_connect_buy_new,
       
    93     ECover_no_usage_rights_connect_buy_new
       
    94 };
       
    95 
       
    96 /*
       
    97 * ==============================================================================
       
    98 * Parameter definitions for the messages in this file.
       
    99 * ==============================================================================
       
   100 */
       
   101 
       
   102 // Package definition for Matched Item
       
   103 struct TUtilitySDData
       
   104     {
       
   105     TUid iUtilityUid;        // DrmUtilityCommon.dll process Id
       
   106     TUid iHandlerProcessId;  // Process Id which is using DrmUtilityCommon.dll
       
   107     TBuf<256> iStringParam;  // Used to transfer string note info
       
   108                              // (like server names, filenames etc..)
       
   109     TBuf<32> iNumParam;      // Used to transfer numeric note info data
       
   110                              // (like days, counts, time)
       
   111                                 
       
   112     };    
       
   113 
       
   114 typedef TPckgBuf<TUtilitySDData> TUtilitySDDataPckg;
       
   115 
       
   116 // Package definition for cancel event
       
   117 struct TUtilitySDDataCancel
       
   118     {    
       
   119     TUid iHandlerProcessId;     // Process Id which is using DrmUtilityCommon.dll
       
   120     TInt iNoteId;               // Dialog id of the cancelled event
       
   121     };
       
   122 
       
   123 typedef TPckgBuf<TUtilitySDDataCancel> TUtilitySDDataPckgCancel;
       
   124 
       
   125 #endif // T_DRMUTILITYSECONDARYDISPLAY_H