inc/mmscmds.h
changeset 31 ebfee66fde93
parent 23 238255e8b033
equal deleted inserted replaced
30:6a20128ce557 31:ebfee66fde93
       
     1 /*
       
     2 * Copyright (c) 2002-2005 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:  
       
    15 *     Mtm commands from client mtm to server mtm
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef MMSCMDS_H
       
    22 #define MMSCMDS_H
       
    23 
       
    24 #include <msvstd.hrh>
       
    25 
       
    26 //
       
    27 // Mtm commands for requests from client side to server side
       
    28 //
       
    29 enum TMmsCommands
       
    30     {
       
    31     EMmsSend = KMtmFirstFreeMtmFunctionId, // from outbox to MMSC
       
    32     EMmsReceive,             // from MMSC to inbox
       
    33     EMmsScheduledSend,       // schedule to send
       
    34     EMmsScheduledReceive,    // schedule to fetch
       
    35     EMmsDeleteSchedule,      // delete selection from schedule (cancel)
       
    36     EMmsDecodePushedMessage, // Decode pushed message content, and invoke
       
    37                              // appropriate action.
       
    38     EMmsLogDeliveryReport,   // scheduled delivery report handling
       
    39     EMmsDeleteEntries,       // should only be used to clean old notifications
       
    40     EMmsReceiveForced,       // fetch message even in deferred or off state
       
    41     EMmsScheduledReceiveForced, // schedule message fetching even in deferred or off state
       
    42     EMmsGarbageCollection,   // if battery has been removed in the middle
       
    43                              // of an operation, entries may not be completely
       
    44                              // handled. Attempt to reschedule incomplete operations.
       
    45     EMmsDeleteExpiredNotifications, // in manual mode expired notifications must
       
    46                                     // be deleted every now and then
       
    47     EMmsRetryServiceLoading, // If service loading fails with KErrInUse, retry
       
    48                              // otherwise schsendexe panics.
       
    49     EMmsMessageGeneration,   // create "ready-made" mms messages from binaries
       
    50                              // stored in mmstest folder.
       
    51                              // For operator message variation feature
       
    52     EMmsForward,             // For forward without retrieval operation
       
    53     EMmsScheduledForward,    // For forward without retrieval operation
       
    54     EMmsNotificationDelete,  // For Notification Delete operation
       
    55     EMmsScheduledNotificationDelete, // For Notification Delete operation
       
    56     EMmsUpdateMmboxList,     // update mmbox list view (unscheduled)
       
    57     EMmsSendReadReport,      // Send MMS read report
       
    58     EMmsScheduledReadReport  // Schedule sending of MMS read report
       
    59     };
       
    60 
       
    61 //
       
    62 // General param pack
       
    63 //
       
    64 class TCommandParameters
       
    65     {
       
    66     public:
       
    67         inline TCommandParameters();
       
    68         // The delay to wait before operation is started.
       
    69         // if 0, delay is determined by hard-coded default value
       
    70         // (a small delay, for example 10 seconds, exact value must
       
    71         // be determined when hardware timing is better known)
       
    72         // This parameter is intended to be used to initiate
       
    73         // retry operation after a delay (for example 10 minutes)
       
    74         TTimeIntervalSeconds iInitialDelay;
       
    75         // only schedule entries that have failed because of following error
       
    76         // if iError == KErrNone, everything is rescheduled
       
    77         TInt iError; 
       
    78     };
       
    79 
       
    80 typedef TPckgBuf<TCommandParameters> TCommandParametersBuf;
       
    81 
       
    82 TCommandParameters::TCommandParameters():
       
    83 iInitialDelay( 0 ),
       
    84 iError( 0 )
       
    85     {
       
    86     }
       
    87 
       
    88 //
       
    89 // parameter pack for EMmsDecodePushedMessage command
       
    90 //
       
    91 class TWatcherParameters
       
    92     {
       
    93     public:
       
    94         inline TWatcherParameters();
       
    95         TThreadId iWatcherId;
       
    96         TAny* iDataPointer;
       
    97     };
       
    98 
       
    99 typedef TPckgBuf<TWatcherParameters> TWatcherParametersBuf;
       
   100 
       
   101 TWatcherParameters::TWatcherParameters():
       
   102 iWatcherId( 0 ),
       
   103 iDataPointer( 0 )
       
   104     {
       
   105     }
       
   106 
       
   107 //
       
   108 // parameter pack for EMmsGarbageCollection command
       
   109 //
       
   110 class TMMSGarbageCollectionParameters
       
   111     {
       
   112     public:
       
   113         inline TMMSGarbageCollectionParameters();
       
   114         TUint32 iReasonFlags;
       
   115         TTime iMediaUnavailableTime; // the moment when media has become unavailable.
       
   116     };
       
   117 
       
   118 typedef TPckgBuf<TMMSGarbageCollectionParameters> TMMSGarbageCollectionParametersBuf;
       
   119 
       
   120 TMMSGarbageCollectionParameters::TMMSGarbageCollectionParameters():
       
   121 iReasonFlags( 0 ),
       
   122 iMediaUnavailableTime( 0 )
       
   123     {
       
   124     }
       
   125 
       
   126 #endif      // MMSCMDS_H  
       
   127             
       
   128 // End of File