uifw/EikStd/coctlinc/aknedwinphysicshandler.h
branchRCL_3
changeset 56 d48ab3b357f1
parent 55 aecbbf00d063
equal deleted inserted replaced
55:aecbbf00d063 56:d48ab3b357f1
    44 
    44 
    45     /**
    45     /**
    46      * Two-phased constructor.
    46      * Two-phased constructor.
    47      */
    47      */
    48     static CAknEdwinPhysicsHandler* NewLC( CEikEdwin& aEdwin );
    48     static CAknEdwinPhysicsHandler* NewLC( CEikEdwin& aEdwin );
       
    49 
       
    50     /**
       
    51      * Two-phased constructor.
       
    52      */
       
    53     static CAknEdwinPhysicsHandler* NewL( CEikEdwin& aEdwin, CAknPhysics* aPhysics );
       
    54 
       
    55     /**
       
    56      * Two-phased constructor.
       
    57      */
       
    58     static CAknEdwinPhysicsHandler* NewLC( CEikEdwin& aEdwin, CAknPhysics* aPhysics );
       
    59 
    49     /**
    60     /**
    50      * Destructor.
    61      * Destructor.
    51      */
    62      */
    52     virtual ~CAknEdwinPhysicsHandler();
    63     virtual ~CAknEdwinPhysicsHandler();
    53     
    64     
   124      * @param aCurrentPosition Current position of dragging.
   135      * @param aCurrentPosition Current position of dragging.
   125      * @return ETrue if drag threshold is exceeded.
   136      * @return ETrue if drag threshold is exceeded.
   126      */
   137      */
   127     TBool DragThresholdExceeded( const TPoint& aCurrentPosition ) const;
   138     TBool DragThresholdExceeded( const TPoint& aCurrentPosition ) const;
   128     
   139     
       
   140     /**
       
   141      * Disables dragging until next pointer up.
       
   142      *
       
   143      */
       
   144     void DisableDragging();
       
   145     
   129     
   146     
   130 public: // From base class MAknPhysicsObserver.
   147 public: // From base class MAknPhysicsObserver.
   131 
   148 
   132     /**
   149     /**
   133      * Called when view position changes.
   150      * Called when view position changes.
   156 private:
   173 private:
   157 
   174 
   158     /**
   175     /**
   159      * C++ constructor.
   176      * C++ constructor.
   160      */
   177      */
   161     CAknEdwinPhysicsHandler( CEikEdwin& aEdwin );
   178     CAknEdwinPhysicsHandler( CEikEdwin& aEdwin, CAknPhysics* aPhysics  = NULL );
   162 
   179 
   163     /**
   180     /**
   164      * Symbian second-phase constructor.
   181      * Symbian second-phase constructor.
   165      */
   182      */
   166     void ConstructL();
   183     void ConstructL();
   346     
   363     
   347     /**
   364     /**
   348      * Start position of drag.
   365      * Start position of drag.
   349      */
   366      */
   350     TPoint iStartPosition;
   367     TPoint iStartPosition;
       
   368 
       
   369     /**
       
   370      * ETrue if this class owns CAknPhysics instance.
       
   371      */
       
   372     TBool iOwnsPhysics;
   351     };
   373     };
   352 
   374 
   353 #endif // C_AKNEDWINPHYSICSHANDLER_H
   375 #endif // C_AKNEDWINPHYSICSHANDLER_H