inc/DRMEventTimeChange.h
changeset 23 493788a4a8a4
parent 0 95b198f216e5
equal deleted inserted replaced
5:79d62d1d7957 23:493788a4a8a4
    20 #ifndef CDRMEVENTTIMECHANGE_H
    20 #ifndef CDRMEVENTTIMECHANGE_H
    21 #define CDRMEVENTTIMECHANGE_H
    21 #define CDRMEVENTTIMECHANGE_H
    22 
    22 
    23 //  INCLUDES
    23 //  INCLUDES
    24 #include <e32base.h>
    24 #include <e32base.h>
    25 #include <DrmTypes.h>
    25 #include <DRMTypes.h>
    26 #include <DRMEvent.h>   
    26 #include <DRMEvent.h>
    27 
    27 
    28 // CONSTANTS
    28 // CONSTANTS
    29 
    29 
    30 // MACROS
    30 // MACROS
    31 
    31 
    43 *
    43 *
    44 *  @lib DRMCommon.dll
    44 *  @lib DRMCommon.dll
    45 *  @since S60Rel2.8
    45 *  @since S60Rel2.8
    46 */
    46 */
    47 
    47 
    48 class CDRMEventTimeChange : public MDRMEvent, public CBase 
    48 class CDRMEventTimeChange : public MDRMEvent, public CBase
    49 {
    49 {
    50 public: // Constructors and destructor
    50 public: // Constructors and destructor
    51 
    51 
    52 
    52 
    53     /**
    53     /**
    70     *
    70     *
    71     * @return A functional CDRMEventTimeChange -object
    71     * @return A functional CDRMEventTimeChange -object
    72     * @since S60Rel3.0
    72     * @since S60Rel3.0
    73     */
    73     */
    74     IMPORT_C static CDRMEventTimeChange* NewL();
    74     IMPORT_C static CDRMEventTimeChange* NewL();
    75     
    75 
    76     /**
    76     /**
    77     * Destructor
    77     * Destructor
    78     */   
    78     */
    79     IMPORT_C virtual ~CDRMEventTimeChange();
    79     IMPORT_C virtual ~CDRMEventTimeChange();
    80 
    80 
    81 public: // new functions
    81 public: // new functions
    82 
    82 
    83 
    83 
    94 
    94 
    95 
    95 
    96     /**
    96     /**
    97     * GetOldTime
    97     * GetOldTime
    98     *
    98     *
    99     * Returns what the time was before the time changed 
    99     * Returns what the time was before the time changed
   100     *
   100     *
   101     * @since S60Rel2.8
   101     * @since S60Rel2.8
   102     */
   102     */
   103     IMPORT_C const TTime& GetOldTime() const;
   103     IMPORT_C const TTime& GetOldTime() const;
   104 
   104 
   115 
   115 
   116 
   116 
   117     /**
   117     /**
   118     * GetNewTime
   118     * GetNewTime
   119     *
   119     *
   120     * Returns what the time is after the time changed 
   120     * Returns what the time is after the time changed
   121     *
   121     *
   122     * @since S60Rel2.8
   122     * @since S60Rel2.8
   123     */
   123     */
   124     IMPORT_C const TTime& GetNewTime() const;
   124     IMPORT_C const TTime& GetNewTime() const;
   125 
   125 
   159 
   159 
   160 
   160 
   161     /**
   161     /**
   162     * GetNewTimeZone
   162     * GetNewTimeZone
   163     *
   163     *
   164     * Returns what the timezone is after the time changed 
   164     * Returns what the timezone is after the time changed
   165     *
   165     *
   166     * @since S60Rel2.8
   166     * @since S60Rel2.8
   167     */
   167     */
   168     IMPORT_C TInt GetNewTimeZone() const;
   168     IMPORT_C TInt GetNewTimeZone() const;
   169 
   169 
   202 
   202 
   203 
   203 
   204     /**
   204     /**
   205     * GetNewSecurityLevel
   205     * GetNewSecurityLevel
   206     *
   206     *
   207     * Returns what the security level is after the time changed 
   207     * Returns what the security level is after the time changed
   208     *
   208     *
   209     * @since S60Rel2.8
   209     * @since S60Rel2.8
   210     */
   210     */
   211     IMPORT_C DRMClock::ESecurityLevel GetNewSecurityLevel() const;
   211     IMPORT_C DRMClock::ESecurityLevel GetNewSecurityLevel() const;
   212 
   212 
   233     IMPORT_C virtual void InternalizeL(RReadStream& aInput);
   233     IMPORT_C virtual void InternalizeL(RReadStream& aInput);
   234 
   234 
   235 
   235 
   236     /**
   236     /**
   237     * WriteInt64L
   237     * WriteInt64L
   238     * 
   238     *
   239     * Writes the 64 bit integer to the stream
   239     * Writes the 64 bit integer to the stream
   240     *
   240     *
   241     * @since    3.0
   241     * @since    3.0
   242     * @param    aWrite : the 64 bit integer to write
   242     * @param    aWrite : the 64 bit integer to write
   243     * @param    aStream : the output stream to write to
   243     * @param    aStream : the output stream to write to
   246     */
   246     */
   247     void WriteInt64L( const TInt64& aWrite, RWriteStream& aStream ) const;
   247     void WriteInt64L( const TInt64& aWrite, RWriteStream& aStream ) const;
   248 
   248 
   249     /**
   249     /**
   250     * ReadInt64L
   250     * ReadInt64L
   251     * 
   251     *
   252     * Reads the 64 bit integer from the stream
   252     * Reads the 64 bit integer from the stream
   253     *
   253     *
   254     * @since    3.0
   254     * @since    3.0
   255     * @param    aRead : the 64 bit integer read
   255     * @param    aRead : the 64 bit integer read
   256     * @param    aStream : the output stream to write to
   256     * @param    aStream : the output stream to write to
   257     * @return   The function leaves with Symbian OS error code if an
   257     * @return   The function leaves with Symbian OS error code if an
   258     *           error occurs
   258     *           error occurs
   259     */
   259     */
   260     void ReadInt64L( TInt64& aRead, RReadStream& aStream ); 
   260     void ReadInt64L( TInt64& aRead, RReadStream& aStream );
   261 
   261 
   262 private:
   262 private:
   263     
   263 
   264     /**
   264     /**
   265     * C++ default constructor.
   265     * C++ default constructor.
   266     */
   266     */
   267     CDRMEventTimeChange( void );
   267     CDRMEventTimeChange( void );
   268 
   268 
   269     /**
   269     /**
   270     * First Phase constructor
   270     * First Phase constructor
   271     */
   271     */
   272     void ConstructL();
   272     void ConstructL();
   273    
   273 
   274     // Prohibit copy constructor
   274     // Prohibit copy constructor
   275     CDRMEventTimeChange( const CDRMEventTimeChange& );
   275     CDRMEventTimeChange( const CDRMEventTimeChange& );
   276 
   276 
   277     // Prohibit assigment operator
   277     // Prohibit assigment operator
   278     CDRMEventTimeChange& operator=( const CDRMEventTimeChange& );
   278     CDRMEventTimeChange& operator=( const CDRMEventTimeChange& );
   280     // The old time before the change
   280     // The old time before the change
   281     TTime iOldTime;
   281     TTime iOldTime;
   282 
   282 
   283     // The new time after the change
   283     // The new time after the change
   284     TTime iNewTime;
   284     TTime iNewTime;
   285     
   285 
   286     // The old timezone before the change
   286     // The old timezone before the change
   287     TInt iOldTimeZone;
   287     TInt iOldTimeZone;
   288     
   288 
   289     // The new timezone after the change
   289     // The new timezone after the change
   290     TInt iNewTimeZone;
   290     TInt iNewTimeZone;
   291     
   291 
   292     // The old security level before the change
   292     // The old security level before the change
   293     DRMClock::ESecurityLevel iOldSecurityLevel;
   293     DRMClock::ESecurityLevel iOldSecurityLevel;
   294     
   294 
   295     // The new security level after the change
   295     // The new security level after the change
   296     DRMClock::ESecurityLevel iNewSecurityLevel;
   296     DRMClock::ESecurityLevel iNewSecurityLevel;
   297     
   297 
   298 };
   298 };
   299 
   299 
   300 #endif      // CDRMEVENTTIMECHANGE_H
   300 #endif      // CDRMEVENTTIMECHANGE_H
   301             
   301 
   302 // End of File
   302 // End of File