~pete-woods/indicator-network/wapi-lp1597681

« back to all changes in this revision

Viewing changes to src/qdbus-stubs/dbus-types.h

New Connectivity Service Private API for managing mobile data and SIM cards. Tests. (LP: #1373463)

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
        return path.arg(counter++);
48
48
    }
49
49
 
50
 
    inline QString modemPath(const QString &serial)
 
50
    inline QString modemPath()
51
51
    {
 
52
        static int counter {0};
52
53
        static QString path{"/com/ubuntu/connectivity1/modem/%1"};
53
 
        return path.arg(serial);
 
54
        return path.arg(counter++);
54
55
    }
55
56
 
56
 
    inline QString simPath(const QString &imsi)
 
57
    inline QString simPath()
57
58
    {
 
59
        static int counter {0};
58
60
        static QString path{"/com/ubuntu/connectivity1/sim/%1"};
59
 
        return path.arg(imsi);
 
61
        return path.arg(counter++);
60
62
    }
61
63
 
62
64