EXPORT_C void CLogEvent::CopyL(const CLogEvent& aEvent) /** Makes a copy of the specified log event. @param aEvent The log event to be copied. */ { // Set data first as this is the only function that can leave // If this function fails nothing will be changed SetDataL(aEvent.Data()); SetId(aEvent.Id()); SetEventType(aEvent.EventType()); SetTime(aEvent.Time()); SetDurationType(aEvent.DurationType()); SetDuration(aEvent.Duration()); SetContact(aEvent.Contact()); SetLink(aEvent.Link()); SetDescription(aEvent.Description()); SetRemoteParty(aEvent.RemoteParty()); SetDirection(aEvent.Direction()); SetStatus(aEvent.Status()); SetSubject(aEvent.Subject()); SetNumber(aEvent.Number()); ClearFlags(KLogFlagsMask); SetFlags(aEvent.Flags()); #ifdef SYMBIAN_ENABLE_EVENTLOGGER_DUALSIM SetSimId(aEvent.SimId()); #endif }
/// Primary Constructor /// @param position Zero-based index within the system where the rhythm slash is anchored /// @param durationType Duration type to set (1 = whole, 2 = half, 4 = quarter, 8 = 8th, 16 = 16th, 32 = 32nd, 64 = 64th) /// @param dotCount Number of duration dots to set RhythmSlash::RhythmSlash(wxUint32 position, wxByte durationType, wxByte dotCount) : m_position(position), m_beaming(DEFAULT_BEAMING), m_data(DEFAULT_DATA) { //------Last Checked------// // - Jan 7, 2005 wxASSERT(IsValidPosition(position)); SetDurationType(durationType); if (dotCount == 1) SetDotted(); else if (dotCount == 2) SetDoubleDotted(); }