devicesrv_plat/accessory_policy_usb_audio_api/inc/accpolterminalbase.h
changeset 0 4e1aa6a622a0
child 21 ccb4f6b3db21
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/devicesrv_plat/accessory_policy_usb_audio_api/inc/accpolterminalbase.h	Tue Feb 02 00:53:00 2010 +0200
@@ -0,0 +1,79 @@
+/*
+ * Copyright (c) 2007 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:  Base class for audio terminal objects.
+ *
+ */
+
+#ifndef ACCPOLTERMINALBASE_H
+#define ACCPOLTERMINALBASE_H
+
+#include <accpolaudiounitbase.h>
+
+/**
+ *  Class definition for audio terminal objects.
+ *
+ *  @accpolaudiodevicetopology.lib
+ */
+NONSHARABLE_CLASS ( CAccPolTerminalBase ) : public CAccPolAudioUnitBase
+    {
+public:
+
+    /**
+     * Destructor.
+     */
+    virtual ~CAccPolTerminalBase();
+
+    /**
+     * Assign operator for audio terminal base class.
+     *
+     * @param CAccPolTerminalBase, Const reference to base class to be copied.
+     * @return CAccPolTerminalBase, Reference to object pointer.
+     */
+    IMPORT_C CAccPolTerminalBase& operator= ( const CAccPolTerminalBase& );
+
+protected:
+
+    /**
+     * Externalize object ( intended internal use only ).
+     */
+    IMPORT_C void ExternalizeTerminalBaseL( RWriteStream& aStream ) const;
+
+    /**
+     * Externalize object ( intended internal use only ).
+     */
+    IMPORT_C void InternalizeTerminalBaseL( RReadStream& aStream );
+
+protected:
+
+    /**
+     * C++ default constructor.
+     */
+    IMPORT_C CAccPolTerminalBase( const TTopologyConObjectType aObjecType,
+        CAccPolObjectCon* aObject = NULL );
+
+    /**
+     * C++ default constructor.
+     */
+    IMPORT_C CAccPolTerminalBase( const TTopologyConObjectType aObjecType,
+        const TUint8 aUnitId );
+
+    /**
+     * C++ default constructor.
+     */
+    IMPORT_C CAccPolTerminalBase( const TTopologyConObjectType aObjecType,
+        const TUint8 aUnitId,
+        const TUint8 aSourceId );
+    };
+
+#endif // ACCPOLTERMINALBASE_H