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