diff -r a36789189b53 -r 095bea5f582e mmserv/tms/tmsimpl/inc/tmsringtonebodyimpl.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mmserv/tms/tmsimpl/inc/tmsringtonebodyimpl.h Tue Aug 31 15:43:02 2010 +0300 @@ -0,0 +1,70 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: Telephony Multimedia Service + * + */ + +#ifndef TMSRINGTONEBODYIMPL_H +#define TMSRINGTONEBODYIMPL_H + +#include +#include +#include "tmsringtonebody.h" + +namespace TMS { + +// FORWARD DECLARATIONS +class TMSRingToneObserver; +class TMSProxy; +class TMSRingTone; + +// TMSRingToneBodyImpl class +class TMSRingToneBodyImpl : public TMSRingToneBody + { +public: + static gint Create(TMSRingToneBody*& bodyimpl); + static gint Create(TMSRingToneBody*& bodyimpl, RWindow& window, gint scrid); + virtual ~TMSRingToneBodyImpl(); + + // From TMSRingToneBody + virtual gint AddObserver(TMSRingToneObserver& obsrvr, gpointer user_data); + virtual gint RemoveObserver(TMSRingToneObserver& obsrvr); + virtual gint Init(const TMSRingToneType type, GString* str, GString* tts); + virtual gint Deinit(); + virtual gint Play(); + virtual gint Stop(); + virtual gint Pause(); + virtual gint Mute(); + + void SetParent(TMSRingTone*& parent); + +private: + TMSRingToneBodyImpl(); + gint PostConstruct(); + +private: + TMSRingToneObserver* iObserver; + gpointer iUserData; + TMSProxy* iProxy; + TMSRingTone* iParent; + guint iClientId; + gint iScreenID; + }; + +} //namespace TMS + +#endif //TMSRINGTONEBODYIMPL_H + +// End of file +