Results 1 to 2 of 2

Thread: Handle the same process with different actions

  1. #1
    Join Date
    Jan 2015
    Location
    Barquisimeto, Venezuela
    Posts
    24
    Thanks
    2
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Android

    Question Handle the same process with different actions

    Hello again friends, as they are?

    Today I bring the next question, I could not solve, or at least visualize the most appropriate way to resolve it.

    I have a process called "refactor" who want to reuse, and have two tasks or actions, "delete" and "rename" I want to run, each on demand clear is.

    The question itself is as follows:

    How I can do to make this process receives a list of files to be modified and indicating the type of action "delete" and "rename" ?.

    Is there a design pattern that allows me to perform this task ?.

    I have been researching but not achievement which can serve to identify me.

    Although I think the closest to what I want are: Command, strategy

    Thanks in advance.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Handle the same process with different actions

    I think all you need is a list of items describing a single task you want to perform which you will pass to the process. Unless you intend to extend the amount of actions that can be performed, I don't see any benefits of using some complicated design pattern.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 1
    Last Post: 16th April 2014, 07:44
  2. Replies: 4
    Last Post: 8th March 2013, 09:36
  3. Replies: 1
    Last Post: 10th April 2012, 16:18
  4. Obtaining Windows Handle for Child Process
    By GTBuilder in forum Qt Programming
    Replies: 5
    Last Post: 19th March 2008, 21:54
  5. how can I get the QApplication handle by process ID in QT2
    By pencilren in forum Qt Programming
    Replies: 5
    Last Post: 28th August 2007, 20:10

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.