photosgallery/controllers/collectionmanager/src/glxcollectionmanager.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 27 Apr 2010 16:37:53 +0300
branchRCL_3
changeset 25 191387a8b767
parent 0 4e91876724a2
permissions -rw-r--r--
Revision: 201015 Kit: 201017

/*
* Copyright (c) 2008-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:    Implementation of collection manager API for external use
*
*/




#include "glxcollectionmanager.h"
#include "glxcollectionmanagerimpl.h"

// -----------------------------------------------------------------------------
// NewL
// -----------------------------------------------------------------------------
//
EXPORT_C CGlxCollectionManager*  CGlxCollectionManager::NewL()
	{
	CGlxCollectionManager* self = new (ELeave) CGlxCollectionManager();
	CleanupStack::PushL(self);
	self->ConstructL();
	CleanupStack::Pop(self);
	return self;
	}

// -----------------------------------------------------------------------------
// Constructor
// -----------------------------------------------------------------------------
//
CGlxCollectionManager::CGlxCollectionManager()
    {

    }
// -----------------------------------------------------------------------------
// Destructor
// -----------------------------------------------------------------------------
//
EXPORT_C CGlxCollectionManager::~CGlxCollectionManager()
    {
    delete iImplementation;
    }

// -----------------------------------------------------------------------------
// CGlxCollectionManager::AddToCollectionL
// -----------------------------------------------------------------------------
//
EXPORT_C void CGlxCollectionManager::AddToCollectionL(const TDesC& aUri, 
                        TCollection aCollection, TRequestStatus& aRequestStatus)
    {
    iImplementation->AddToContainerL(aUri, aCollection, aRequestStatus);
    }
// -----------------------------------------------------------------------------
// CGlxCollectionManager::AddToCollectionL
// -----------------------------------------------------------------------------
//
EXPORT_C void CGlxCollectionManager::AddToCollectionL(const TDesC& aUri, 
                        TUint32 aCollectionId, TRequestStatus& aRequestStatus)
    {
    iImplementation->AddToContainerL(aUri, aCollectionId, aRequestStatus);
    }
// -----------------------------------------------------------------------------
// CGlxCollectionManager::CollectionInfoL
// -----------------------------------------------------------------------------
//
EXPORT_C void CGlxCollectionManager::CollectionInfoL(CGlxCollectionInfo& aInfo,
                        TRequestStatus& aRequestStatus)
    {
    iImplementation->CollectionInfoL(aInfo, aRequestStatus);
    }

// -----------------------------------------------------------------------------
// CGlxCollectionManager::Cancel
// -----------------------------------------------------------------------------
//
EXPORT_C void CGlxCollectionManager::Cancel()
    {
    iImplementation->Cancel();
    }

// -----------------------------------------------------------------------------
// Second phase constructor
// -----------------------------------------------------------------------------
//
void CGlxCollectionManager::ConstructL()
	{
	iImplementation = new (ELeave) 
			CGlxCollectionManagerImpl(); 
	}