src/ext/amaretto/logs/inc/eventdata.h
changeset 0 ca70ae20a155
equal deleted inserted replaced
-1:000000000000 0:ca70ae20a155
       
     1 /**
       
     2  * ====================================================================
       
     3  * eventdata.h
       
     4  * Copyright (c) 2006-2007 Nokia Corporation
       
     5  *
       
     6  * Licensed under the Apache License, Version 2.0 (the "License");
       
     7  * you may not use this file except in compliance with the License.
       
     8  * You may obtain a copy of the License at
       
     9  *
       
    10  *     http://www.apache.org/licenses/LICENSE-2.0
       
    11  *
       
    12  * Unless required by applicable law or agreed to in writing, software
       
    13  * distributed under the License is distributed on an "AS IS" BASIS,
       
    14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
       
    15  * See the License for the specific language governing permissions and
       
    16  * limitations under the License.
       
    17  * ====================================================================
       
    18  */
       
    19 
       
    20 #ifndef __EVENTDATA_H
       
    21 #define __EVENTDATA_H
       
    22 
       
    23 #include <cntdef.h>
       
    24 #include <logwrap.h>
       
    25 
       
    26 #ifndef EKA2
       
    27 class CEventData : public CBase
       
    28 #else
       
    29 NONSHARABLE_CLASS (CEventData) : public CBase
       
    30 #endif
       
    31 {
       
    32 protected:
       
    33 	CEventData();
       
    34 
       
    35 	void ConstructL();
       
    36 
       
    37 
       
    38 public:
       
    39 	static CEventData *NewL();
       
    40 	static CEventData *NewLC();
       
    41 
       
    42 	~CEventData();
       
    43 
       
    44 	void SetNumberL(const TDesC& aNumber);
       
    45 	const TDesC *GetNumber() const;
       
    46 	
       
    47 	void SetDataL(const TDesC8& aData);
       
    48 	const TDesC8 *GetData() const;
       
    49 
       
    50 
       
    51 protected:
       
    52 	HBufC*	iNumber;	// large maximum length, (probably) therefore heap allocated
       
    53 	HBufC8*	iData;		// no given maximum length, therefore heap allocated
       
    54 	
       
    55 
       
    56 public: 
       
    57 	//Public members for easy assignment.
       
    58 	TBuf<KLogMaxRemotePartyLength>	iName;
       
    59 	TBuf<KLogMaxDescriptionLength>	iDescription;
       
    60 	TBuf<KLogMaxDirectionLength>	iDirection;
       
    61 	TBuf<KLogMaxStatusLength>		iStatus;
       
    62 	TBuf<KLogMaxSubjectLength>		iSubject;
       
    63 	//
       
    64 	TLogId							iId;
       
    65 	TContactItemId					iContactId;
       
    66 	TLogDuration					iDuration;
       
    67 	TLogDurationType				iDurationType;
       
    68 	TLogFlags						iFlags;
       
    69 	TLogLink						iLink;
       
    70 	TTime							iTime;
       
    71 };
       
    72 #endif