inc/DRMClockClient.h
changeset 23 493788a4a8a4
parent 0 95b198f216e5
equal deleted inserted replaced
5:79d62d1d7957 23:493788a4a8a4
    20 #ifndef RDRMCLOCKCLIENT_H
    20 #ifndef RDRMCLOCKCLIENT_H
    21 #define RDRMCLOCKCLIENT_H
    21 #define RDRMCLOCKCLIENT_H
    22 
    22 
    23 //  INCLUDES
    23 //  INCLUDES
    24 #include <e32std.h>
    24 #include <e32std.h>
    25 #include <DrmTypes.h>
    25 #include <DRMTypes.h>
    26 //#include "DRMClock.h"
       
    27 
    26 
    28 // CONSTANTS
    27 // CONSTANTS
    29 // MACROS
    28 // MACROS
    30 
    29 
    31 // DATA TYPES
    30 // DATA TYPES
    46     public:  // Constructor & destructor
    45     public:  // Constructor & destructor
    47         /**
    46         /**
    48          * C++ default constructor.
    47          * C++ default constructor.
    49          */
    48          */
    50         IMPORT_C RDRMClockClient();
    49         IMPORT_C RDRMClockClient();
    51         
    50 
    52         /** 
    51         /**
    53          * Destructor.
    52          * Destructor.
    54          */
    53          */
    55         IMPORT_C virtual ~RDRMClockClient();
    54         IMPORT_C virtual ~RDRMClockClient();
    56         
    55 
    57         /** 
    56         /**
    58          * This method opens the connection between the client and the server.
    57          * This method opens the connection between the client and the server.
    59          * @since 2.5
    58          * @since 2.5
    60          * @return Error code. KErrNone if the operation is successful.
    59          * @return Error code. KErrNone if the operation is successful.
    61          */
    60          */
    62         IMPORT_C TInt Connect();
    61         IMPORT_C TInt Connect();
    63         
    62 
    64         /**
    63         /**
    65          * This function closes the connection between the client and the server.
    64          * This function closes the connection between the client and the server.
    66          * It is safe to call this method even if connection is not established.
    65          * It is safe to call this method even if connection is not established.
    67          * @since S60Rel2.5
    66          * @since S60Rel2.5
    68          */ 
    67          */
    69         IMPORT_C void Close();
    68         IMPORT_C void Close();
    70         
    69 
    71     public: // New functions
    70     public: // New functions
    72         
    71 
    73         /**
    72         /**
    74          * Get the secure time.
    73          * Get the secure time.
    75          * @since 2.6
    74          * @since 2.6
    76          * @param aTime           Output parameter containing the 
    75          * @param aTime           Output parameter containing the
    77          *                        secure time in UTC.
    76          *                        secure time in UTC.
    78          * @param aTimeZone       Time zone information including summer/winter time
    77          * @param aTimeZone       Time zone information including summer/winter time
    79          *                        in +/- 15 minutes
    78          *                        in +/- 15 minutes
    80          * @param aSecurityLevel  Output parameter Securiry level.
    79          * @param aSecurityLevel  Output parameter Securiry level.
    81          * @return Symbian OS error code if any.
    80          * @return Symbian OS error code if any.
    82          */
    81          */
    83         IMPORT_C TInt GetSecureTime( TTime& aTime, 
    82         IMPORT_C TInt GetSecureTime( TTime& aTime,
    84                             TInt& aTimeZone,
    83                             TInt& aTimeZone,
    85                             DRMClock::ESecurityLevel& aSecurityLevel ) const;
    84                             DRMClock::ESecurityLevel& aSecurityLevel ) const;
    86                             
    85 
    87         /**
    86         /**
    88          * Update the secure time.
    87          * Update the secure time.
    89          * @since 2.6
    88          * @since 2.6
    90          * @param aTime           Input parameter containing the 
    89          * @param aTime           Input parameter containing the
    91          *                        secure time in UTC.
    90          *                        secure time in UTC.
    92          * @param aTimeZone       Time zone information including summer/winter time
    91          * @param aTimeZone       Time zone information including summer/winter time
    93          *                        in +/- 15 minutes         
    92          *                        in +/- 15 minutes
    94          * @return Symbian OS error code if any.
    93          * @return Symbian OS error code if any.
    95          */
    94          */
    96         IMPORT_C TInt UpdateSecureTime( const TTime& aTime, const TInt& aTimeZone );
    95         IMPORT_C TInt UpdateSecureTime( const TTime& aTime, const TInt& aTimeZone );
    97                             
    96 
    98         
    97 
    99     public: // Functions from base classes
    98     public: // Functions from base classes
   100         
    99 
   101     protected:  // New functions
   100     protected:  // New functions
   102         
   101 
   103     protected:  // Functions from base classes
   102     protected:  // Functions from base classes
   104         
   103 
   105     private:
   104     private:
   106         // Prohibit copy constructor if not deriving from CBase.
   105         // Prohibit copy constructor if not deriving from CBase.
   107         RDRMClockClient( const RDRMClockClient& );
   106         RDRMClockClient( const RDRMClockClient& );
   108         // Prohibit assigment operator if not deriving from CBase.
   107         // Prohibit assigment operator if not deriving from CBase.
   109         RDRMClockClient& operator=( const RDRMClockClient& );
   108         RDRMClockClient& operator=( const RDRMClockClient& );
   110         
   109 
   111     public:     // Data
   110     public:     // Data
   112         
   111 
   113     protected:  // Data
   112     protected:  // Data
   114         
   113 
   115     private:    // Data
   114     private:    // Data
   116         
   115 
   117     public:     // Friend classes
   116     public:     // Friend classes
   118         
   117 
   119     protected:  // Friend classes
   118     protected:  // Friend classes
   120         
   119 
   121     private:    // Friend classes
   120     private:    // Friend classes
   122     };
   121     };
   123     
   122 
   124 #endif      // RDRMCLOCKCLIENT_H   
   123 #endif      // RDRMCLOCKCLIENT_H
   125 
   124 
   126 // End of File
   125 // End of File