phonebookui/pbkcommonui/inc/cntmycardview.h
branchRCL_3
changeset 62 5b6f26637ad3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/phonebookui/pbkcommonui/inc/cntmycardview.h	Tue Aug 31 15:05:21 2010 +0300
@@ -0,0 +1,74 @@
+/*
+* 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:  
+*
+*/
+
+#ifndef CNTMYCARDVIEW_H_
+#define CNTMYCARDVIEW_H_
+
+#include <QObject>
+#include <QSet>
+#include <hbdocumentloader.h>
+#include <cntabstractview.h>
+
+class HbView;
+class HbAction;
+
+QTM_BEGIN_NAMESPACE
+class QContact;
+QTM_END_NAMESPACE
+
+QTM_USE_NAMESPACE
+
+class CntMyCardView : public QObject, public CntAbstractView
+{
+
+Q_OBJECT
+
+public:
+    CntMyCardView();
+    ~CntMyCardView();
+
+public: // From CntAbstractView
+    void activate( const CntViewParameters aArgs );
+    void deactivate();
+    
+    inline bool isDefault() const { return false; }
+    inline HbView* view() const { return mView; }
+    inline int viewId() const { return myCardView; }
+    inline void setEngine( CntAbstractEngine& aEngine ){ mEngine = &aEngine; }
+    
+private slots:
+    void showPreviousView();
+    void openNameEditor();
+    void openMyCardSelectionView(); 
+    void handleMultiCardSelection(QSet<QContactLocalId> aIds);
+    void setOrientation(Qt::Orientation orientation);
+
+private: 
+    
+    void removeFromGroup(const QContact* contact);
+    
+private:  
+    QContact*                 mContact; // own
+    CntAbstractViewManager*   mViewManager;
+    HbDocumentLoader          mDocumentLoader;
+    HbView*                   mView; // own
+    HbAction*                 mSoftkey;
+    CntAbstractEngine*        mEngine; 
+    friend class TestCntMyCardView;
+};
+
+#endif /* CNTMYCARDVIEW_H_ */