--- a/installationservices/swcomponentregistry/inc/screntries_internal.h Tue Jul 06 14:23:31 2010 +0300
+++ b/installationservices/swcomponentregistry/inc/screntries_internal.h Wed Aug 18 09:55:45 2010 +0300
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
@@ -94,117 +94,7 @@
private:
HBufC* iName; ///< The localized software type name.
};
-
- NONSHARABLE_CLASS (CScrLogEntry) : public CBase
- /**
- Class that represents a software component log record generated by the SCR.
- */
- {
- friend class CScrRequestImpl;
- public:
- /**
- Creates a log entry object.
- @param aComponentName The name of the component.
- @param aUniqueSwTypeName The non-localized, unique software type name, such as @see Usif::KSoftwareTypeNative and @see Usif::KSoftwareTypeJava.
- @param aGlobalId The global Id of the component.
- @param aVersion The version of the component.
- @param aCompOpType The type of the component operation. @see Usif::TScrComponentOperationType
- @return A pointer to the newly allocated log entry object, if creation is successful.
- @internalComponent
- */
- IMPORT_C static CScrLogEntry* NewL(const TDesC& aComponentName, const TDesC& aUniqueSwTypeName, const TDesC& aGlobalId, const TDesC& aVersion, const TScrComponentOperationType aCompOpType);
-
- /**
- Creates a log entry object.
- @param aComponentName The name of the component.
- @param aUniqueSwTypeName The non-localized, unique software type name, such as @see Usif::KSoftwareTypeNative and @see Usif::KSoftwareTypeJava.
- @param aGlobalId The global Id of the component.
- @param aVersion The version of the component.
- @param aCompOpType The type of the component operation. @see Usif::TScrComponentOperationType
- @return A pointer to the newly allocated log entry object, if creation is successful.
- The pointer is also put onto the cleanup stack.
- @internalComponent
- */
- IMPORT_C static CScrLogEntry* NewLC(const TDesC& aComponentName, const TDesC& aUniqueSwTypeName, const TDesC& aGlobalId, const TDesC& aVersion, const TScrComponentOperationType aCompOpType);
- /**
- Creates a log entry object from a stream.
- @param aStream The stream to read the log entry object from.
- @return A pointer to the newly allocated log entry object, if creation is successful.
- The pointer is also put onto the cleanup stack.
- @internalComponent
- */
- IMPORT_C static CScrLogEntry* NewLC(RReadStream& aStream);
-
- ~CScrLogEntry();
-
- /**
- Write the object to a stream
-
- @param aStream The stream to write to
- @internalComponent
- */
- IMPORT_C void ExternalizeL(RWriteStream& aStream) const;
-
- /**
- Read the object from a stream
-
- @param aStream The stream to read from.
- @internalComponent
- */
- IMPORT_C void InternalizeL(RReadStream& aStream) ;
-
- /**
- @return The name of the component for which the log was generated.
- */
- IMPORT_C const TDesC& ComponentName() const;
-
- /**
- @return The non-localized, unique software type name, such as @see Usif::KSoftwareTypeNative and @see Usif::KSoftwareTypeJava.
- */
- IMPORT_C const TDesC& SoftwareTypeName() const;
-
- /**
- The UID.
- @return The global ID of the component.
- */
- IMPORT_C const TDesC& GlobalId() const;
-
- /**
- @return The version of the component.
- */
- IMPORT_C const TDesC& ComponentVersion() const;
-
- /**
- @return The time when the operation occured.
- */
- IMPORT_C const TTime OperationTime() const;
-
- /**
- @return The type of the component operation for the log record.
- */
- IMPORT_C TScrComponentOperationType OperationType() const;
-
- /**
- @return The component id of the log record.
- @internalComponent
- */
- IMPORT_C TComponentId ComponentId() const;
-
- private:
- CScrLogEntry();
- void ConstructL(const TDesC& aComponentName, const TDesC& aUniqueSwTypeName, const TDesC& aGlobalId, const TDesC& aVersion, const TScrComponentOperationType aCompOpType);
-
- private:
- HBufC* iComponentName ;
- HBufC* iSwTypeName;
- HBufC* iVersion;
- TScrComponentOperationType iOpType ;
- TTime iRecordTime ;
- HBufC* iGlobalId;
- TComponentId iComponentId;
- };
-
} // End of namespace Usif
#endif // SCRENTRIES_H